Skip to content

BUG, I log in with a user, if I refresh it it takes the last user who logged in #1877

Open

Description

Version

module: 5.0.0-1648802546.c9880dc
nuxt: "``^2.15.8

Nuxt configuration

mode:

  • universal
  • spa

Nuxt configuration

auth: {
redirect: {
login: "/auth/login",
},

strategies: {
  local: {
    endpoints: {
      login: {
        url: "v1/auth/login",
        method: "post",
        propertyName: "token",
      },
      logout: {
        url: "v1/auth/logout",
        method: "post",
      },
      user: {
        url: "v1/auth/me",
        method: "get",
        propertyName: "user",
      },
    },
  },
},

},

What is expected?

When I log in to my platform I have a normal login, but when I log out and log in again, I already appear logged in with the last user who logged in, I've already tried doing everything, removing the cloudflare cache, removing all caches possible. I took nuxt hydration, I'm desperate because my app is in production

When I press ctrl+r and it gives getMe, it works normally, but there are times when it doesn't show /me, when it doesn't show /me it crashes with the last login made on the platform

Algúem já teve esse problema?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions