Method GetTokenInfoAsync
GetTokenInfoAsync(CancellationToken)
Returns an instance of OAuthUserTokenInfo generated by this credential.
Declaration
public Task<OAuthUserTokenInfo> GetTokenInfoAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<OAuthUserTokenInfo> | A task that represents the asynchronous creation operation. The value of the task result is an OAuthUserTokenInfo. |
Remarks
If the access token has expired, this method regenerates it. If the RefreshTokenExchangeInterval is set, this method exchanges the refresh token at specified interval. While regenerating the access token or exchanging the refresh token, if the refresh token is expired, an exception will be thrown.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 200.6 |
.NET | 200.6 |
.NET Windows | 200.6 |
.NET Android | 200.6 |
.NET iOS | 200.6 |
.NET Framework | 200.6 |
UWP | 200.6 |