nuxt auth0 refresh token code example
Example: how refresh token jwt nuxt auth
auth: {
localStorage: false,
strategies: {
local: {
scheme: 'refresh',
token: {
property: 'access',
type: 'Bearer',
required: true
},
refreshToken: {
property: 'refresh_token'
},
user: {
property: false,
autoFetch: true
},
endpoints: {
login: { url: '/api/v1/auth/jwt/create/', method: 'post' },
refresh: { url: '/api/v1/auth/jwt/refresh/', method: 'post' },
user: { url: '/api/v1/auth/users/me/', method: 'get' },
logout: false
}
}
}
}