googleapis/signet

Detect expired token

rusikf opened this issue · 1 comments

How to detect if user oauth2 offline token has been expired and refresh it ?

Hi @rusikf. You should call .expired? to check access token is expired and call .fetch_access_token! to refresh it 😎