fix return types

This commit is contained in:
Untone 2021-07-30 16:59:40 +03:00
parent 99923fe4bd
commit 1fab421a07

View File

@ -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