Skip to content

Commit 3d3d98f

Browse files
increase refresh token lifetime
1 parent 7b99955 commit 3d3d98f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keep_learning/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235

236236
SIMPLE_JWT = {
237237
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=5),
238-
'REFRESH_TOKEN_LIFETIME': timedelta(days=1),
238+
'REFRESH_TOKEN_LIFETIME': timedelta(days=7),
239239
'ROTATE_REFRESH_TOKENS': True,
240240
'BLACKLIST_AFTER_ROTATION': True,
241241
'UPDATE_LAST_LOGIN': True, # Needed for invalidating used password reset token

0 commit comments

Comments
 (0)