Closed mbrevda closed 7 months ago
This was historically done by design as not all classes extending from OAuth2Client had, or should have, idTokens. Here are a few that do today (via fetchIdToken
):
By chance if you are looking for this functionality in the UserRefreshClient
, which extends OAuth2Client, that can be tracked here:
it would be great if a
OAuth2Client.getIdToken()
method could be added. Currently,OAuth2Client.getAccessToken()
exists, which allows getting an access token with automatic refresh if necessary. It would be handy if this were available for other tokens as well, such as the id token. Alternatively, a method that auto-refreshed and returned all credentials could be just as useful.