We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2fcf15d + edd56e2 commit 602ff41Copy full SHA for 602ff41
src/cryptojwt/jwt.py
@@ -27,7 +27,7 @@ def utc_time_sans_frac():
27
28
:return: A number of seconds
29
"""
30
- return int((datetime.utcnow() - datetime(1970, 1, 1)).total_seconds())
+ return int(datetime.utcnow().timestamp())
31
32
33
def pick_key(keys, use, alg="", key_type="", kid=""):
0 commit comments