refactor(tokens-repo): delete get token name from auth utils

redis/token-repo
Houkime 2022-12-26 14:56:39 +00:00
parent 25326b75ca
commit 87ea88c50a
1 changed files with 0 additions and 9 deletions

View File

@ -73,15 +73,6 @@ def is_token_valid(token):
return False
def get_token_name(token: str) -> typing.Optional[str]:
"""Return the name of the token provided"""
with ReadUserData(UserDataFiles.TOKENS) as tokens:
for t in tokens["tokens"]:
if t["token"] == token:
return t["name"]
return None
class BasicTokenInfo(BaseModel):
"""Token info"""