Function: createOAuth2Manager()
ts
function createOAuth2Manager(options): OAuth2Manager;Defined in: src/core/oauth/oauth2Manager.ts:44
Holds the OAuth 2.0 token state for one client: refreshes before expiry, resolves the cloud id once, and reports rotated refresh tokens through onTokenRefresh.
Both the refresh and the cloud-id lookup are single-flighted, so N concurrent requests hitting an expired token produce one token call, not N.
Parameters
| Parameter | Type |
|---|---|
options | OAuth2ManagerOptions |