-
-
Notifications
You must be signed in to change notification settings - Fork 511
Open
Labels
EnhancementThis is a new feature or requestThis is a new feature or request
Description
Summary
Leeway allows to give exp some extra slack to fix potential clock errors.
It is a standard jwt feature, docs: https://pyjwt.readthedocs.io/en/stable/api.html#jwt.decode
I implemented it in django-modern-rest that borrowed a lot of code / inspiration from litestar's jwt implementation: wemake-services/django-modern-rest#445
Exact places:
- https://github.com/wemake-services/django-modern-rest/blob/840ec2b6a2706fd6b6f7abde4ca2bdebab744ded/django_modern_rest/security/jwt/token.py#L53-L54
- https://github.com/wemake-services/django-modern-rest/blob/840ec2b6a2706fd6b6f7abde4ca2bdebab744ded/django_modern_rest/security/jwt/token.py#L65
Basic Example
No response
Drawbacks and Impact
No response
Unresolved questions
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
EnhancementThis is a new feature or requestThis is a new feature or request
Type
Projects
Status
Triage