Skip to content

Commit

Permalink
chore: deploy test
Browse files Browse the repository at this point in the history
  • Loading branch information
yaongmeow committed Jun 9, 2024
1 parent 258f7f3 commit ce80b62
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions BE/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def jwt_decoder(token: str, key: str):

def access_token_gen(user:UserTokenInfo):
payload = {
'exp': datetime.utcnow() + timedelta(minutes=40),
'iat': datetime.utcnow(),
'exp': str(datetime.utcnow() + timedelta(minutes=40)),
'iat': str(datetime.utcnow()),
'scope': 'access_token',
'data': {
'user_id': user.user_id,
Expand All @@ -38,8 +38,8 @@ def access_token_gen(user:UserTokenInfo):

def refresh_token_gen(user:UserTokenInfo):
payload = {
'exp': datetime.utcnow() + timedelta(days=7),
'iat': datetime.utcnow(),
'exp': str(datetime.utcnow() + timedelta(days=7)),
'iat': str(datetime.utcnow()),
'scope': 'access_token',
'data': {
'user_id': user.user_id,
Expand Down

0 comments on commit ce80b62

Please sign in to comment.