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.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API containing the \u003ccode\u003eOidcToken\u003c/code\u003e is 1.69.0, however this page is about version 1.59.0 of the API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eOidcToken\u003c/code\u003e inherits from the base \u003ccode\u003eObject\u003c/code\u003e class and therefore inherits methods like \u003ccode\u003eEquals\u003c/code\u003e, \u003ccode\u003eGetHashCode\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOidcToken\u003c/code\u003e class has one method, \u003ccode\u003eGetAccessTokenAsync\u003c/code\u003e, which retrieves the access token associated with the \u003ccode\u003eOidcToken\u003c/code\u003e, and handles refreshing it if expired.\u003c/p\u003e\n"],["\u003cp\u003eThe page also includes details on the usage of \u003ccode\u003eGetAccessTokenAsync\u003c/code\u003e, including its parameters, returns, and usage of the \u003ccode\u003eCancellationToken\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]