Skip to content

Commit

Permalink
"eml" -> "email"
Browse files Browse the repository at this point in the history
This will reduce the mental overload when we inevitably need to
deserialzie these tokens!
  • Loading branch information
chennisden committed May 30, 2024
1 parent afc739d commit 262c228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions store/app/api/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async def create_refresh_token(email: str, crud: Crud) -> str:
"""
token = Token(email=email)
await crud.add_token(token)
return create_token({"eml": email})
return create_token({"email": email})


def load_refresh_token(payload: str) -> str:
Expand All @@ -87,4 +87,4 @@ def load_refresh_token(payload: str) -> str:
The decoded refresh token data.
"""
data = load_token(payload)
return data["eml"]
return data["email"]

0 comments on commit 262c228

Please sign in to comment.