token 先设置为1分钟

This commit is contained in:
caoqianming 2022-04-27 09:24:21 +08:00
parent f96645ae29
commit 98b48f54b3
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ REST_FRAMEWORK = {
}
# simplejwt配置
SIMPLE_JWT = {
'ACCESS_TOKEN_LIFETIME': timedelta(days=1),
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=1),
}
# 跨域配置/可用nginx处理,无需引入corsheaders