Skip to content

Commit

Permalink
Merge pull request #18 from flavien-hugs/develop
Browse files Browse the repository at this point in the history
Fix User model attributes
  • Loading branch information
flavien-hugs authored Aug 10, 2024
2 parents 41ac639 + 7f92223 commit e719b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async def check_access(token: str, permission: set[str]):


async def validate_access_token(token: str):
decode_token = await CustomAccessBearer.decode_access_token(token=token)
decode_token = CustomAccessBearer.decode_access_token(token=token)
current_timestamp = datetime.now(timezone.utc).timestamp()
is_token_active = decode_token.get("exp", 0) > current_timestamp
return JSONResponse(
Expand Down

0 comments on commit e719b54

Please sign in to comment.