nuxt-auth
nuxt-auth copied to clipboard
Investigate `addDefaultCallbackUrl` not working correctly
Environment
- Operating System: Darwin
- Node Version: v22.3.0
- Nuxt Version: 3.12.4
- CLI Version: 3.12.0
- Nitro Version: 2.9.7
- Package Manager: [email protected]
- Builder: -
- User Config: compatibilityDate, future, experimental, devtools, modules, css, runtimeConfig, tailwindcss, naiveui, notivue, fonts, icon, i18n, auth, typescript, sourcemap, tiptap
- Runtime Modules: @nuxtjs/[email protected], @vueuse/[email protected], @vee-validate/[email protected], @sidebase/[email protected], @nuxtjs/[email protected], @bg-dev/[email protected], notivue/nuxt, @nuxt/[email protected], @nuxt/[email protected], [email protected]
- Build Modules: -
Reproduction
Describe the bug
In #832, the issue was raised that the addDefaultCallbackUrl was not working as intended. From my initial investigation, the callback URL does get set inside the login link, however after authenticating the user is still redirected to the index page instead of the page they were supposed to be redirected to.
Additional context
No response
Logs
No response
Having the same issue, on nuxt 3.11.2as well but with local provider. Everythings seems fine until it's calling getOriginalTargetPath
This should be fixed by #992