Skip to content

Investigate addDefaultCallbackUrl not working correctly #857

@zoey-kaiser

Description

@zoey-kaiser

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: pnpm@9.5.0
  • Builder: -
  • User Config: compatibilityDate, future, experimental, devtools, modules, css, runtimeConfig, tailwindcss, naiveui, notivue, fonts, icon, i18n, auth, typescript, sourcemap, tiptap
  • Runtime Modules: @nuxtjs/i18n@8.3.1, @vueuse/nuxt@10.11.0, @vee-validate/nuxt@4.13.2, @sidebase/nuxt-auth@0.8.2, @nuxtjs/tailwindcss@6.12.1, @bg-dev/nuxt-naiveui@1.11.0, notivue/nuxt, @nuxt/fonts@0.7.1, @nuxt/icon@1.2.0, nuxt-tiptap-editor@1.1.2
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug that needs to be resolvedp4Important Issueprovider-authjsAn issue with the authjs provider

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions