Closed Todosiienko closed 1 year ago
@Todosiienko can you provide a repro or url where I can check it? I don't use PWA with authentication (yet) and never used Firebase.
@userquin I found the reason of this problem. Acording to the firebase docs I have to set up navigation fallback in the VitePWA like this
VitePWA({ strategies: "generateSW", registerType: "autoUpdate", workbox:{ navigateFallbackAllowlist:[/^(?!\/__).*/]} }),
and now this issue is resolved.
@Todosiienko
can you share the link? https://firebase.google.com/docs/web/pwa seems to have nothing about thisç
EDIT: forgot it, I don't check your comment properly
I want to add some to the PWA docs... (PR welcome ;) )
Hello. I have SPA project which use Vue3, Vite, Firebase 9, and vite-plugin-pwa to generate Service Worker. Everything worked good but once when i tried to login with Google Auth it started to open the new window with my app without login. When i stop using pwa plugin and unregister previously registered SW i can login with Google without any problems.
My vite.config.js file looks like this
I will very appreciate for any suggestions.