feat(tokens-repo): redis delete token

This commit is contained in:
Houkime 2022-12-14 16:16:55 +00:00
parent ba6a5261fa
commit 647e02f25b

View file

@ -35,7 +35,9 @@ class RedisTokensRepository(AbstractTokensRepository):
def delete_token(self, input_token: Token) -> None:
"""Delete the token"""
raise NotImplementedError
r = self.connection
key = RedisTokensRepository._token_redis_key(input_token)
r.delete(key)
def get_recovery_key(self) -> Optional[RecoveryKey]:
"""Get the recovery key"""