Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG returning from nuxt/auth login flow causing ?standalone=true to appear #444

Open
Soviut opened this issue Mar 16, 2021 · 5 comments
Open

Comments

@Soviut
Copy link

Soviut commented Mar 16, 2021

We are using nuxt/auth to sign in with Auth0. Sometimes, when redirecting back from Auth0 to our /callback URL, they get redirected to their / home URL. At which point the ?standalone=true gets mysteriously added to the querystring.

The home page appeared to be logged out, however, their cookies were all set correctly. Clicking the login button did nothing (it kept sending them to the page they were already on) and it would only show you were logged in when you clicked on the logo (the one visible nav item) which sent you to / without standalone=true on it.

It turns out that with /?standalone=true it was being cached by workbox and that's what was showing to the user.

I still do not understand why standalone=true even appears in the URL. We have some routing middleware to handle onboarding cases but the rest is being handled by nuxt/auth.

Our solution, for now, has to been to disable nuxt/pwa since it isn't critical for our app to work. However, I'm interested in getting to the bottom of this behaviour.

This Stack Overflow question seems somewhat related https://stackoverflow.com/questions/64608408/workbox-is-precaching-urls-without-revision-info-standalone-true-this-is-gene

@CavalcanteLeo
Copy link

same here

@filipsobol
Copy link

I encountered the same issue with our custom Auth0 integration. It seems to be caused by #406.
As a workaround (mentioned in #451 (comment)), you can downgrade @nuxtjs/pwa to version 3.2.0 since pre-caching was introduced in 3.2.1.

@mattcrn
Copy link

mattcrn commented Jul 9, 2021

I have the same problem with nuxt-auth. Downgrading as a helped as a workaround.

@hyrumwhite
Copy link

Experiencing this issue with @nuxtjs/pwa 3.3.5 as well

@Tragio
Copy link

Tragio commented Jun 29, 2022

Having the same issue with the latest PWA and Auth modules. Since I'm using a custom manifest I fixed it by removing 'start_url' line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants