jwt tokenni life time 1 yil qilib qoyildi

This commit is contained in:
behruz-dev
2025-12-01 17:04:23 +05:00
parent 59c1c455b2
commit f9141f3be0

View File

@@ -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,
} }