Show / Hide Table of Contents

Method GetTokenInfoAsync

GetTokenInfoAsync(CancellationToken)

Returns an instance of OAuthUserTokenInfo generated by this credential.

Declaration
public Task<OAuthUserTokenInfo> GetTokenInfoAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken
Returns
Type Description
Task<OAuthUserTokenInfo>

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

Remarks
  • If the access token has expired, this method regenerates it.
  • If 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.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.6 - 200.8
.NET200.6 - 300.0
.NET Windows200.6 - 300.0
.NET Android200.6 - 300.0
.NET iOS200.6 - 300.0
.NET Framework200.6 - 200.8
UWP200.6 - 200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.