Skip to content

Interface: OAuth2Manager ​

Defined in: src/core/oauth/oauth2Manager.ts:22

Methods ​

canRefresh() ​

ts
canRefresh(): boolean;

Defined in: src/core/oauth/oauth2Manager.ts:24

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:30

Refresh regardless of expiry. Used by the 401 retry path.

Returns ​

Promise&lt;void>


getAuthorizationHeader() ​

ts
getAuthorizationHeader(): Promise<string>;

Defined in: src/core/oauth/oauth2Manager.ts:26

Bearer <token>, refreshing first if the token is missing or within the skew window of expiry.

Returns ​

Promise&lt;string>


getBaseUrl() ​

ts
getBaseUrl(): Promise<string>;

Defined in: src/core/oauth/oauth2Manager.ts:28

The gateway base URL for the resolved cloud id.

Returns ​

Promise&lt;string>