Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect after login not work after upgrade to nuxt 3.12.1 #116

Open
nasirDoe opened this issue Jun 12, 2024 · 0 comments
Open

Redirect after login not work after upgrade to nuxt 3.12.1 #116

nasirDoe opened this issue Jun 12, 2024 · 0 comments

Comments

@nasirDoe
Copy link

Environment

chrome
Macos
Node 20
Nuxt 3.12.1

Nuxt Config

auth: {
    globalMiddleware: true,
    strategies: {
      local: {
        token: {
          property: 'data.token',
          maxAge: 1000 * 60 * 60, // 1 hour
          global: true,
        },
        user: {
          property: 'data', // `user` property is now `user.property`
          autoFetch: true,
        },
        endpoints: {
          login: { url: '/auth/signin', method: 'post' },
          user: { url: '/member/getMemberProfile', method: 'get' },
          logout: { url: '/auth/logout', method: 'post' },
        },
      },
    },
    redirect: {
      login: '/account/login',
      logout: '/',
      callback: '/',
      home: '/',
    },
  },

Reproduction

Describe the bug

after upgrade to new version off nuxt 3.12.1. Finally i downgrade to version 3.11.2 and work again

Additional context

Logs

-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant