getTokenInfo method

Future<OAuthUserTokenInfo> getTokenInfo()

Returns an instance of OAuthUserTokenInfo generated by this credential.

  • If the access token has expired, this method regenerates it.
  • If OAuthUserConfiguration.refreshTokenExchangeInterval is set, this method exchanges the refresh token at the specified interval. By default, the interval is 1440 minutes (24 hours).
  • While regenerating the access token or exchanging the refresh token, if the refresh token is expired, an invalid token error is returned.

Return Value: Returns the non-expired OAuth token information generated by this credential.