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

Make token refresh more user friendly #625

Closed nosnilmot closed 4 months ago

nosnilmot commented 5 months ago

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

Make client.refresh_token() and client.ensure_active_token() work without needing to supply any parameters.

client may already have the necessary token endpoint or token, so caller should not be required to provide them.