lepture / authlib

The ultimate Python library in building OAuth, OpenID Connect clients and servers. JWS,JWE,JWK,JWA,JWT included.
https://authlib.org/
BSD 3-Clause "New" or "Revised" License
4.39k stars 436 forks source link

Expose leeway in clients #643

Closed michalismeng closed 1 month ago

michalismeng commented 3 months ago

What kind of change does this PR introduce? (check at least one)

Issue #567 introduced a "leeway" parameter for proactive token refreshing. Expose this parameter in clients (e.g., the requests client) to allow configuring it by the library's users.