fix return types
This commit is contained in:
parent
99923fe4bd
commit
1fab421a07
|
@ -39,7 +39,7 @@ class Authorize:
|
||||||
await redis.execute("DEL", *tokens)
|
await redis.execute("DEL", *tokens)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
async def confirm(token: str) -> str, User:
|
async def confirm(token: str):
|
||||||
try:
|
try:
|
||||||
# NOTE: auth_token and email_token are different
|
# NOTE: auth_token and email_token are different
|
||||||
payload = Token.decode(token) # TODO: check to decode here the proper way
|
payload = Token.decode(token) # TODO: check to decode here the proper way
|
||||||
|
|
Loading…
Reference in New Issue
Block a user