We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b89239f commit c332971Copy full SHA for c332971
src/aleph/vm/orchestrator/views/operator.py
@@ -27,9 +27,8 @@ def is_token_still_valid(timestamp):
27
"""
28
Checks if a token has exprired based on its timestamp
29
30
- timestamp = int(timestamp)
31
current_datetime = datetime.now(tz=timezone.utc)
32
- target_datetime = datetime.fromtimestamp(timestamp, tz=timezone.utc)
+ target_datetime = datetime.fromisoformat(timestamp, tz=timezone.utc)
33
34
return target_datetime > current_datetime
35
@@ -78,7 +77,7 @@ class SignedPubKeyPayload(BaseModel):
78
77
# alg: Literal["ECDSA"]
79
domain: str
80
address: str
81
- expires: float # timestamp # TODO: move to ISO 8601
+ expires: str
82
83
@property
84
def json_web_key(self) -> Jwk:
0 commit comments