You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set auth: { globalAppMiddleware: true } in nuxt.config.ts
Create page with auth disabled with link to another page (protected due to globalAppMiddleware)
Go to unprotected page while signed out and click link to protected page
Login, you will be redirected to the original page not the protected page
Also go to non-existent page while signed out and you will be redirected to sign in
Describe the bug
setting globalAppMiddleware:true in nuxt.config.ts results in different behaviour to setting globalAppMiddleware: { isEnabled: true }, this is unintuitive and not clear in documentation
addDefaultCallbackUrl and allow404WithoutAuth both behave as false if globalAppMiddleware:true is set but true if globalAppMiddleware: { isEnabled: true } is set
PR is open
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
[3:19:41 pm] Nuxi 3.6.5
[3:19:41 pm]
[3:19:41 pm] Nuxt project info:
Reproduction
Set auth: { globalAppMiddleware: true } in nuxt.config.ts
Create page with auth disabled with link to another page (protected due to globalAppMiddleware)
Go to unprotected page while signed out and click link to protected page
Login, you will be redirected to the original page not the protected page
Also go to non-existent page while signed out and you will be redirected to sign in
Describe the bug
setting globalAppMiddleware:true in nuxt.config.ts results in different behaviour to setting globalAppMiddleware: { isEnabled: true }, this is unintuitive and not clear in documentation
addDefaultCallbackUrl and allow404WithoutAuth both behave as false if globalAppMiddleware:true is set but true if globalAppMiddleware: { isEnabled: true } is set
PR is open
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: