Skip to content

Commit e8a8fd4

Browse files
authored
Merge pull request #70 from onekey-sec/fix-jwt-validation-time
feat: JWT validation is now in microsecond precision
2 parents cf254e9 + afddbec commit e8a8fd4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

onekey_client/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import functools
22
import gc
33
import secrets
4+
import time
45
from importlib import resources
56
from pathlib import Path
67

@@ -261,7 +262,7 @@ def _verify_token(
261262
claims_options=claims_options,
262263
claims_params={"nonce": nonce},
263264
)
264-
decoded_token.validate()
265+
decoded_token.validate(now=time.time())
265266
return decoded_token
266267

267268

0 commit comments

Comments
 (0)