Hi,
I use "@nuxtjs/auth-next": "^5.0.0-1624817847.21691f1" together with NuxtJs. Backend is on a Django server with simpleJWT installed.
I have no problem with the login but I need to get refresh token working. This feature was not present in the release <5.0.0 so I upgraded to auth-next.
my nuxt.config.js file looks like this
auth: {
strategies: {
local: {
scheme: 'refresh',
token: {
property: "access",
global: true,
required: true,
type: 'Bearer'
},
user: {
property: false,
autoFetch: true
},
refreshToken: {
property: 'access',
data: 'refresh',
},
endpoints: {
login: { url: 'api/account/token/', method: 'post' },
refresh: { url: 'api/account/token/refresh/', method: 'post' },
user: { url: 'api/account/user/', method: 'get' },
logout: false,
},
}
}
},```
However there is no refresh going out to the server nor do I stay loggedIn after the access token has expired.
there is very very little doc available not any tutorial with deep details, hence I am completely stuck.
Can I get some help please. Thanks in advance
Hi, I use "@nuxtjs/auth-next": "^5.0.0-1624817847.21691f1" together with NuxtJs. Backend is on a Django server with simpleJWT installed.
I have no problem with the login but I need to get refresh token working. This feature was not present in the release <5.0.0 so I upgraded to auth-next.
my nuxt.config.js file looks like this