mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-18 08:29:14 +00:00
feat(tokens-repo): redis delete token
This commit is contained in:
parent
ba6a5261fa
commit
647e02f25b
|
@ -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"""
|
||||
|
|
Loading…
Reference in a new issue