public Task<string> GetAccessTokenAsync(CancellationToken cancellationToken = default(CancellationToken))
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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage details the `OidcToken` class, which represents an OIDC token, within the `Google.Apis.Auth.OAuth2` namespace of the Google.Apis.Auth.dll assembly, and it is currently at version 1.55.0."],["The `OidcToken` class inherits from the .NET `Object` class, and includes several inherited members, such as `Equals`, `GetHashCode`, and `ToString`, among others."],["The primary method within the `OidcToken` class is `GetAccessTokenAsync`, which retrieves the access token for requests and handles token refresh if the current token has expired."],["The `GetAccessTokenAsync` method takes a `CancellationToken` as a parameter, which allows for canceling the token retrieval operation."],["There are multiple versions of the `Google.Apis` library, with the latest being version 1.69.0, and other versions being 1.68.0, 1.60.0, 1.59.0, 1.55.0, and 1.50.0."]]],[]]