p2 / OAuth2

OAuth2 framework for macOS and iOS, written in Swift.
Other
1.14k stars 276 forks source link

Get refresh token expiry date #351

Open vinczebalazs opened 3 years ago

vinczebalazs commented 3 years ago

Hi!

Is it possible to retrieve the expiry date of the refresh token? My issue is that, I would like to avoid trying to get an access token using my refresh token (so go straight to the login screen), if I know for sure that the refresh token is expired anyway.

Thanks

ossus-lib commented 6 months ago

Some servers use the non-standard refresh_token_expires_in field in the response for that; even though it's non standard maybe we can add support for it.