Skip to content

Enhancement: support leeway in jwt #4584

@sobolevn

Description

@sobolevn

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:

Basic Example

No response

Drawbacks and Impact

No response

Unresolved questions

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementThis is a new feature or request

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions