jwt tokenni life time 1 yil qilib qoyildi
This commit is contained in:
@@ -1,10 +1,9 @@
|
|||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
|
|
||||||
SIMPLE_JWT = {
|
SIMPLE_JWT = {
|
||||||
"ACCESS_TOKEN_LIFETIME": timedelta(days=1),
|
"ACCESS_TOKEN_LIFETIME": timedelta(days=365),
|
||||||
"REFRESH_TOKEN_LIFETIME": timedelta(days=30),
|
"REFRESH_TOKEN_LIFETIME": timedelta(days=3000),
|
||||||
"ROTATE_REFRESH_TOKENS": True,
|
"ROTATE_REFRESH_TOKENS": True,
|
||||||
"BLACKLIST_AFTER_ROTATION": True,
|
"BLACKLIST_AFTER_ROTATION": True,
|
||||||
"UPDATE_LAST_LOGIN": True,
|
"UPDATE_LAST_LOGIN": True,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user