mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-03-12 01:23:49 +00:00
feat(tokens-repo): redis delete token
This commit is contained in:
parent
ba6a5261fa
commit
647e02f25b
1 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,9 @@ class RedisTokensRepository(AbstractTokensRepository):
|
||||||
|
|
||||||
def delete_token(self, input_token: Token) -> None:
|
def delete_token(self, input_token: Token) -> None:
|
||||||
"""Delete the token"""
|
"""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]:
|
def get_recovery_key(self) -> Optional[RecoveryKey]:
|
||||||
"""Get the recovery key"""
|
"""Get the recovery key"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue