From 1fab421a0784306ea439f80e9da8d9ea120530a3 Mon Sep 17 00:00:00 2001 From: Untone Date: Fri, 30 Jul 2021 16:59:40 +0300 Subject: [PATCH] fix return types --- auth/authorize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/authorize.py b/auth/authorize.py index e75ac3d0..46b8a324 100644 --- a/auth/authorize.py +++ b/auth/authorize.py @@ -39,7 +39,7 @@ class Authorize: await redis.execute("DEL", *tokens) @staticmethod - async def confirm(token: str) -> str, User: + async def confirm(token: str): try: # NOTE: auth_token and email_token are different payload = Token.decode(token) # TODO: check to decode here the proper way