Skip to content

Commit

Permalink
update settings
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 committed Sep 30, 2024
1 parent 75713de commit 4935b5b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion api/app/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,13 @@
}
SIMPLE_JWT = {
"AUTH_TOKEN_CLASSES": ["rest_framework_simplejwt.tokens.SlidingToken"],
"SLIDING_TOKEN_LIFETIME": timedelta(hours=10),
"SLIDING_TOKEN_LIFETIME": timedelta(
minutes=env.int(
"COOKIE_AUTH_JWT_ACCESS_TOKEN_LIFETIME_MINUTES",
default=10 * 60,
)
),
"SIGNING_KEY": env.str("COOKIE_AUTH_JWT_SIGNING_KEY", default=SECRET_KEY),
}

# Github OAuth credentials
Expand Down

0 comments on commit 4935b5b

Please sign in to comment.