jpadilla / pyjwt

JSON Web Token implementation in Python
https://pyjwt.readthedocs.io
MIT License
5.18k stars 690 forks source link

Document `leeway` for negative values #988

Closed luigibertaco closed 6 days ago

luigibertaco commented 2 months ago

I am aware that using leeway with negative values works as expected. But I am worried of using it in production as there is no documentation about it and, to me, it could be an undocumented behaviour that can change in future without a breaking change documented.

Is leeway expected to accept negative values and help not to use a token if its "almost" expired? If so, can we document it better and make the definition official?

I am happy to to propose a PR to change the docs, just want to check if the behaviour is expected or not.

github-actions[bot] commented 1 week ago

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