We have a NextJS website built for our clients, that requires you to be authenticated to access any page (this was accomplished using NextJS’s middleware). Now, we are running into a problem where we want to make our web app into a PWA using a service worker, but when the service worker goes to fetch the manifest.json on the server it is forced to try and authenticate which fails. The best solution would be to be able to share cookies with the service worker, but is there a workaround for this other than to disable authentication for that one specific file?
Related Topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
External Api with User permissions from NextJs Server | 1 | 142 | July 17, 2024 | |
Auth0 and NextJS Server Actions | 2 | 771 | July 8, 2024 | |
Nextjs + Auth0 + Express | 0 | 16 | September 16, 2024 | |
Need help selecting correct auth flow for chrome extension | 13 | 3663 | July 4, 2024 | |
Need help with protecting public endpoints WITHOUT user authenticating | 0 | 7 | August 25, 2024 |