简体   繁体   中英

google-oauth-java-client - Force access token default lifetime

I'm wondering if it's possible to change the default lifetime (3600) ?

In fact, i'm trying to solve an issue and i want to check if the issue is due to an expired access token..

Else, is it possible to force the access token used by a credential ?

Let me know if it's not clear. Regards,

Sebastien

You cannot change the lifetime of an access token. You could, however, get a refresh token that can be used to get fresh access tokens (see Google OAuth2 docs ).

Hope that helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM