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

Pressing back button after signOut() shows user a globally protected page #696

Closed
JamesZeki opened this issue Feb 29, 2024 · 1 comment
Closed
Labels
bug A bug that needs to be resolved p4 Important Issue

Comments

@JamesZeki
Copy link

Environment

  • Operating System: Linux
  • Node Version: v20.11.1
  • Nuxt Version: 3.10.1
  • CLI Version: 3.10.0
  • Nitro Version: 2.8.1
  • Package Manager: [email protected]
  • Builder: -
  • User Config: devtools, css, postcss, runtimeConfig, modules, auth
  • Runtime Modules: @sidebase/[email protected]
  • Build Modules: -

Reproduction

It happens from the demo website github: https://github.com/sidebase/nuxt-auth-example/issues

Describe the bug

It happens on the demo website: https://nuxt-auth-example.sidebase.io/

If you go to the globally protected page: https://nuxt-auth-example.sidebase.io/protected/globally

You cannot access it, however. If you: login > logout > press back button -- you can see the page even though you have just logged out. Only when a refresh happens do you get kicked out by the middleware. This happens locally as well when I try it.

Additional context

No response

Logs

No response

@JamesZeki JamesZeki added bug A bug that needs to be resolved pending An issue waiting for triage labels Feb 29, 2024
@zoey-kaiser zoey-kaiser added p4 Important Issue and removed pending An issue waiting for triage labels Mar 1, 2024
@zoey-kaiser
Copy link
Member

Duplicate of #548

@zoey-kaiser zoey-kaiser marked this as a duplicate of #548 Mar 1, 2024
@zoey-kaiser zoey-kaiser closed this as not planned Won't fix, can't repro, duplicate, stale Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug that needs to be resolved p4 Important Issue
Projects
None yet
Development

No branches or pull requests

2 participants