-
-
Notifications
You must be signed in to change notification settings - Fork 188
Open
Labels
bugA bug that needs to be resolvedA bug that needs to be resolvedneeds-reproductionAction needed: A valid reproduction of the issue needs to be addedAction needed: A valid reproduction of the issue needs to be added
Description
Environment
- Operating System: Darwin
- Node Version: v20.18.1
- Nuxt Version: 3.17.3
- CLI Version: 3.25.1
- Nitro Version: 2.11.12
- Package Manager: [email protected]
- Builder: -
- User Config: app, compatibilityDate, devtools, css, imports, vite, modules, fonts, shadcn, components, icon, runtimeConfig, auth, i18n
- Runtime Modules: [email protected], @nuxt/[email protected], @nuxtjs/[email protected], @sidebase/[email protected], @nuxt/[email protected]
- Build Modules: -
Reproduction
Describe the bug
I have:
/ -> landing page
/login -> login page
And after login, when I logout, I want to log the user out to landing page, so I do this
await signOut({ callbackUrl: '/' })
But apparently, what it does is, the user is shown the login page for a bit, before being redirected to landing page.
Can we somehow change it? I tried this but it doesn't work
await signOut()
await navigateTo('/')
Additional context
No response
Logs
Metadata
Metadata
Assignees
Labels
bugA bug that needs to be resolvedA bug that needs to be resolvedneeds-reproductionAction needed: A valid reproduction of the issue needs to be addedAction needed: A valid reproduction of the issue needs to be added