Skip to content

Commit

Permalink
Increase JWT expiration to 30 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
val500 committed Feb 5, 2025
1 parent 364f9e6 commit 2ec0d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/api/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ def generate_token(allowed_resources, secret_key):
See retrieve_token for more information on the contents of
the token payload
"""
expiration_time = datetime.utcnow() + timedelta(seconds=8)
expiration_time = datetime.utcnow() + timedelta(seconds=30)
token_payload = {
"exp": expiration_time,
"iat": datetime.now(timezone.utc), # Issued at time
Expand Down

0 comments on commit 2ec0d02

Please sign in to comment.