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."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eOidcToken\u003c/code\u003e class, which represents an OpenID Connect (OIDC) token within the Google.Apis.Auth.OAuth2 namespace in the Google.Apis.Auth.dll assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOidcToken\u003c/code\u003e class inherits from the \u003ccode\u003eobject\u003c/code\u003e class and provides methods such as \u003ccode\u003eGetAccessTokenAsync\u003c/code\u003e to retrieve a valid access token for making requests.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetAccessTokenAsync\u003c/code\u003e method, included within \u003ccode\u003eOidcToken\u003c/code\u003e, can refresh the access token if it has expired, and accepts a \u003ccode\u003eCancellationToken\u003c/code\u003e parameter to allow for operation cancellation.\u003c/p\u003e\n"],["\u003cp\u003eSeveral versions of the \u003ccode\u003eOidcToken\u003c/code\u003e documentation are available, ranging from version 1.50.0 to the latest version, 1.69.0, with the content on the current page being for version 1.68.0.\u003c/p\u003e\n"]]],[],null,[]]