Seb P
Seb P

Reputation: 687

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

Upvotes: 0

Views: 201

Answers (1)

Miguel Andres
Miguel Andres

Reputation: 1430

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.

Upvotes: 1

Related Questions