Interface: OAuth2Manager
Defined in: src/core/oauth/oauth2Manager.ts:25
Methods
canRefresh()
ts
canRefresh(): boolean;Defined in: src/core/oauth/oauth2Manager.ts:27
Whether a refresh is even possible — needs all three of refreshToken, clientId, clientSecret.
Returns
boolean
forceRefresh()
ts
forceRefresh(): Promise<void>;Defined in: src/core/oauth/oauth2Manager.ts:33
Refresh regardless of expiry. Used by the 401 retry path.
Returns
Promise<void>
getAuthorizationHeader()
ts
getAuthorizationHeader(): Promise<string>;Defined in: src/core/oauth/oauth2Manager.ts:29
Bearer <token>, refreshing first if the token is missing or within the skew window of expiry.
Returns
Promise<string>
getBaseUrl()
ts
getBaseUrl(): Promise<string>;Defined in: src/core/oauth/oauth2Manager.ts:31
The gateway base URL for the resolved cloud id.
Returns
Promise<string>