Method GetTokenInfoAsync
GetTokenInfoAsync(CancellationToken)
Returns an instance of IapTokenInfo generated by this credential.
Declaration
public Task<IapTokenInfo> GetTokenInfoAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | A cancellation token that can be used to cancel the operation. |
Returns
| Type | Description |
|---|---|
| Task<IapTokenInfo> | Returns the non-expired IapTokenInfo generated by this credential. |
Remarks
If the access or ID token has expired, this method regenerates it. While regenerating the access or ID tokens, if the refresh token is expired, an invalid Identity-Aware Proxy (IAP) credential error is thrown.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |