auth-module icon indicating copy to clipboard operation
auth-module copied to clipboard

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

Open vitorhugosg opened this issue 9 months ago • 1 comments

Version

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

Nuxt configuration

mode:

  • [X] 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?

vitorhugosg avatar May 25 '24 13:05 vitorhugosg