Skip to content

Commit

Permalink
Include the token expiration timestamp in the return value of encode_…
Browse files Browse the repository at this point in the history
…jwt_token
  • Loading branch information
ntai-arxiv committed Sep 23, 2024
1 parent bfb93c6 commit a86117c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arxiv/auth/user_claims.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,9 @@ def unpack_token(cls, token: str) -> Tuple[dict, str]:
if len(chunks) < 5:
raise ValueError(f'Token is invalid')
tokens = {
'expires_at': chunks[1],
'idt': chunks[2],
'acc': chunks[3]
'acc': chunks[3]
}
if len(chunks) > 5:
tokens['refresh'] = chunks[5]
Expand Down

0 comments on commit a86117c

Please sign in to comment.