Closed CCodeInspect closed 1 year ago
if i can solve i just back to 2.5.0 ,please help.
i just want to know how can i set my leeway ==1 in function decode()?
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
@llaichiyu Add parameter leeway in decode. ex) jwt.decode(jwt_token, SECRET, algorithms=['HS256'], leeway= 1.0)
Thanks!
I just see the issues for this bug and i get this:
jwt.encode({'iat': int(time.time()) + leeway}, 'secret', algorithm='HS256')
**My question is how can i use this var named leeway? like this?
leeway=1 jwt.encode({'iat': int(time.time()) + leeway}, 'secret', algorithm='HS256')**
And it doesn't work.