我在nuxt.config.js
中尝试这样:
auth: {
redirect: {
login: '/',
home: '/home',
logout: '/'
},
strategies: {
local: {
scheme: "refresh",
token: {
property: 'access_token',
maxAge: 900,
// type: 'Bearer'
},
refreshToken: {
property: "refresh_token",
data: "refresh_token",
maxAge: 60 * 15
},
endpoints: {
login: {
url: '/auth/token',
method: 'post',
propertyName: 'response.token'
},
user: false,
logout: false
},
tokenRequired: true,
tokenType: 'Bearer '
}
},
token: {
name: 'token'
},
cookie: {
name: 'token'
}
},
我设置了15分钟,但是15分钟后,我仍然自动登录 我该如何解决这个问题?