public sealed class OidcTokenRepresents an OIDC Token.
Namespace
Google.Apis.Auth.OAuth2Assembly
Google.Apis.Auth.dll
Methods
GetAccessTokenAsync(CancellationToken)
public Task<string> GetAccessTokenAsync(CancellationToken cancellationToken = default)Gets the access token that should be included in headers when performing requests with this OidcToken. This method will refresh the access token if the current one has expired.
| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
CancellationTokenThe cancellation token to use for cancelling the operation. |
| Returns | |
|---|---|
| Type | Description |
Taskstring |
The valid access token associated to this OidcToken. |