When the type: 'refresh' is set, if i'm already connected and I try to reload my current page (or load a new in another tab), I'll automatically redirected to te /login page.
If I just replace the type: 'refresh' by type: 'local', I can access to a page directly without redirection to the login page...
How can I create a reproduction?
Please use one of the following links to reproduce your issue.
- https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitz
- https://codesandbox.io/s/github/nuxt/starter/v3-codesandbox
Please ensure that the reproduction is as **minimal** as possible. This will allow us to isolate the issue as best as possible.
Here are some more amazing posts about the importance of reproductions:
- [The Importance of Reproductions](https://antfu.me/posts/why-reproductions-are-required)
- [How to Generate a Minimal, Complete, and Verifiable Example](https://stackoverflow.com/help/minimal-reproducible-example)
Environment
Build Modules: -
Reproduction
Put this config in the nuxt config file:
Describe the bug
When the
type: 'refresh'
is set, if i'm already connected and I try to reload my current page (or load a new in another tab), I'll automatically redirected to te/login
page.If I just replace the
type: 'refresh'
bytype: 'local'
, I can access to a page directly without redirection to the login page...Additional context
No response
Logs
No response