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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["The `OidcToken` class represents an OpenID Connect (OIDC) token within the `Google.Apis.Auth.OAuth2` namespace, found in the `Google.Apis.Auth.dll` assembly."],["It inherits from the `object` class and provides access to inherited members like `Equals`, `GetHashCode`, `GetType`, `ReferenceEquals`, and `ToString`."],["The `GetAccessTokenAsync` method retrieves a valid access token, refreshing it if it's expired, and it takes an optional `CancellationToken` for operation cancellation."],["The access token obtained from the `GetAccessTokenAsync` method is intended to be used in request headers when interacting with this specific `OidcToken`."],["Available versions for the OidcToken class are 1.69.0, 1.68.0, 1.60.0, 1.59.0, 1.55.0 and 1.50.0 with 1.69.0 being the latest version."]]],[]]