Framework7 + PWA + firebase-auth

Hello! Redesigning my application for PWA. But I ran into this problem:
I load the application for the first time, go to the login.html page, where the firebaseui.auth.AuthUI block is located. I make the entrance - Successful.
But if I reload the page (online), then I can no longer log in - A network error has occurred.

The login.html page is not in the service worker.