token days 1

This commit is contained in:
caoqianming 2022-04-27 10:18:55 +08:00
parent 98b48f54b3
commit 1f3be8d689
1 changed files with 1 additions and 1 deletions

View File

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