fix(tokens-repo): return device key instead of NewDeviceKey class

pull/26/head
Houkime 2022-12-14 18:27:58 +00:00
parent 13e84e2697
commit fda5d315a9
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class RedisTokensRepository(AbstractTokensRepository):
"""Creates and returns the new device key"""
new_device_key = NewDeviceKey.generate()
self._store_model_as_hash(NEW_DEVICE_KEY_REDIS_KEY, new_device_key)
return NewDeviceKey
return new_device_key
def delete_new_device_key(self) -> None:
"""Delete the new device key"""