mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 21:41:27 +00:00
fix(tokens-repo): make json _get_stored_new_device_key return tz-aware keys
This commit is contained in:
parent
da19cc8c0e
commit
d0a17d7b7a
|
@ -143,7 +143,11 @@ class JsonTokensRepository(AbstractTokensRepository):
|
|||
|
||||
new_device_key = NewDeviceKey(
|
||||
key=tokens_file["new_device"]["token"],
|
||||
created_at=tokens_file["new_device"]["date"],
|
||||
expires_at=tokens_file["new_device"]["expiration"],
|
||||
created_at=self.__date_from_tokens_file(
|
||||
tokens_file, "new_device", "date"
|
||||
),
|
||||
expires_at=self.__date_from_tokens_file(
|
||||
tokens_file, "new_device", "expiration"
|
||||
),
|
||||
)
|
||||
return new_device_key
|
||||
|
|
Loading…
Reference in a new issue