Skip to content

Commit

Permalink
temporary increase jwt exp to 1 day
Browse files Browse the repository at this point in the history
  • Loading branch information
wuttinanhi committed Nov 7, 2022
1 parent d54a994 commit beb7093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def login():
if os.getenv("ENV") != "production":
token = JwtService.encode(jwt, 86400 * 5) # 5 days
else:
token = JwtService.encode(jwt, 60 * 5) # 5 minutes
token = JwtService.encode(jwt, 86400) # TEMP INCREASE TO 1 DAY
return {"token": token}, 200
return {"error": "Invalid login!"}, 401

Expand Down

0 comments on commit beb7093

Please sign in to comment.