Method GetTokenInfoAsync
GetTokenInfoAsync(CancellationToken)
Returns an instance of TokenInfo generated by this credential.
Declaration
public Task<TokenInfo> GetTokenInfoAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
| Type | Name | Description |
|---|---|---|
| System.Threading.CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TokenInfo> | Returns the non-expired token information generated by this credential. |
Remarks
If the token has expired, this method regenerates the access token. Token expiration is based on the TokenExpirationInterval.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 200.6 - 200.8 |
| .NET | 200.6 - 200.8 |
| .NET Windows | 200.6 - 200.8 |
| .NET Android | 200.6 - 200.8 |
| .NET iOS | 200.6 - 200.8 |
| .NET Framework | 200.6 - 200.8 |
| UWP | 200.6 - 200.8 |