Commit f07010d7 authored by Manuel's avatar Manuel

use a constant instead of hardcoded value for token validity

parent 1c439317
...@@ -59,7 +59,7 @@ class TokenService: ...@@ -59,7 +59,7 @@ class TokenService:
created_at = datetime.now() created_at = datetime.now()
valid_until = created_at + timedelta(days=1) valid_until = created_at + timedelta(days=TOKEN_VALIDITY_IN_DAYS)
return jwt.encode( return jwt.encode(
{ {
'username': user.username, 'username': user.username,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment