Open vishnug1995 opened 1 year ago
Has anyone solved the issue? Have the same problem when my Access token expires and trying to refresh. Refresh endpoint sends me the correct access-refresh pair but due to this error loggedIn state is not updated and new pair is not set to the storages..
We're experiencing this issue as well. Started recently I believe.
auth: {
redirect: {
login: "/",
callback: "/auth/signed-in",
home: "/dashboard",
},
cookie: {
options: {
secure: true,
},
},
localStorage: false,
strategies: {
auth0: {
domain: process.env.AUTH0_DOMAIN,
clientId: process.env.AUTH0_CLIENT_ID,
audience: "https://audience.app",
scope: ["openid", "profile", "email", "offline_access"],
responseType: "code",
grantType: "authorization_code",
codeChallengeMethod: "S256",
},
},
},
Version
module: 5.0.0-1607693598.34d83ea nuxt: 2.15.8
Nuxt configuration
spa
Nuxt configuration
auth: { plugins: [ '~/plugins/autorefresh.js' ], strategies: { 'local': { url: process.env.AXIOS_URL, endpoints: { login: { url: 'member/login-process', method: 'post' }, refresh: { url: 'member/refresh', method: 'post' }, user: { url: 'member/profile', method: 'get' }, logout: { url: 'member/logout', method: 'post' } }, user: { property: 'data', autoFetch: true }, token: { property: 'access_token', required: true, type: "Bearer", maxAge: 60 60 24 30 300, }, }, }, redirect: { logout: '/', login: '/', home: '/profile' }, watchLoggedIn: true, }
login, logout all are working fine , but after approx. 1hr it's automatically logout and shows the error ExpiredAuthSessionError