fix(tokens-repo): return device key instead of NewDeviceKey class
parent
13e84e2697
commit
fda5d315a9
|
@ -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"""
|
||||
|
|
Loading…
Reference in New Issue