From 262c2281500226ff405cee0925f3c809334d4ae4 Mon Sep 17 00:00:00 2001 From: Dennis Chen Date: Thu, 30 May 2024 09:26:08 -0700 Subject: [PATCH] "eml" -> "email" This will reduce the mental overload when we inevitably need to deserialzie these tokens! --- store/app/api/token.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store/app/api/token.py b/store/app/api/token.py index 8ce9ae18..c8fbbf16 100644 --- a/store/app/api/token.py +++ b/store/app/api/token.py @@ -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: @@ -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"]