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"]],[["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."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eOidcToken\u003c/code\u003e class, which represents an OIDC token, within the \u003ccode\u003eGoogle.Apis.Auth.OAuth2\u003c/code\u003e namespace of the Google.Apis.Auth.dll assembly, and it is currently at version 1.55.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOidcToken\u003c/code\u003e class inherits from the .NET \u003ccode\u003eObject\u003c/code\u003e class, and includes several inherited members, such as \u003ccode\u003eEquals\u003c/code\u003e, \u003ccode\u003eGetHashCode\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e, among others.\u003c/p\u003e\n"],["\u003cp\u003eThe primary method within the \u003ccode\u003eOidcToken\u003c/code\u003e class is \u003ccode\u003eGetAccessTokenAsync\u003c/code\u003e, which retrieves the access token for requests and handles token refresh if the current token has expired.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetAccessTokenAsync\u003c/code\u003e method takes a \u003ccode\u003eCancellationToken\u003c/code\u003e as a parameter, which allows for canceling the token retrieval operation.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the \u003ccode\u003eGoogle.Apis\u003c/code\u003e 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.\u003c/p\u003e\n"]]],[],null,[]]