From 45a10dad0040e9e2d968cc6f83da75af6a9c61da Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 23 Dec 2021 22:00:08 +0100 Subject: [PATCH] Refresh token expire between 14 days Signed-off-by: Yohann D'ANELLO --- note_kfet/settings/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/note_kfet/settings/base.py b/note_kfet/settings/base.py index 72194d62..2ee10c25 100644 --- a/note_kfet/settings/base.py +++ b/note_kfet/settings/base.py @@ -251,6 +251,7 @@ REST_FRAMEWORK = { OAUTH2_PROVIDER = { 'SCOPES_BACKEND_CLASS': 'permission.scopes.PermissionScopes', 'OAUTH2_VALIDATOR_CLASS': "permission.scopes.PermissionOAuth2Validator", + 'REFRESH_TOKEN_EXPIRE_SECONDS': timedelta(days=14), } # Take control on how widget templates are sourced