refector: 修改access_token的时间
This commit is contained in:
parent
1330b732c0
commit
66f2623c24
|
@ -264,8 +264,8 @@ REST_FRAMEWORK = {
|
||||||
}
|
}
|
||||||
# simplejwt配置
|
# simplejwt配置
|
||||||
SIMPLE_JWT = {
|
SIMPLE_JWT = {
|
||||||
'ACCESS_TOKEN_LIFETIME': timedelta(days=1),
|
'ACCESS_TOKEN_LIFETIME': timedelta(days=7),
|
||||||
'REFRESH_TOKEN_LIFETIME': timedelta(days=30),
|
'REFRESH_TOKEN_LIFETIME': timedelta(days=60),
|
||||||
}
|
}
|
||||||
|
|
||||||
# 跨域配置/可用nginx处理,无需引入corsheaders
|
# 跨域配置/可用nginx处理,无需引入corsheaders
|
||||||
|
|
Loading…
Reference in New Issue