oops forgot to return soething from 'get', and to unpack it into a dictionary

This commit is contained in:
2022-04-23 15:01:43 +02:00
parent 9cf323b9cb
commit f5a78e8b05

View File

@@ -76,6 +76,7 @@ class TokenStoreOnRedis(Token):
result = self.redis_client.get(TOKEN_KEY)
if result is None:
raise NoToken
return json.loads(result)
def set(self, token_dict: dict) -> None:
self.redis_client.set(TOKEN_KEY, json.dumps(token_dict))