Skip to content

OAuthClient

Defined in: packages/core/src/adapters/oauth.ts:18

Authorization-code grant against one service, with the operator’s client credentials held inside.

authorizeUrl(opts): string

Defined in: packages/core/src/adapters/oauth.ts:20

Consent-screen URL to send the user to.

string

string

string


exchangeCode(opts): Promise<OAuthTokens>

Defined in: packages/core/src/adapters/oauth.ts:22

Exchange the callback code for tokens.

string

string

AbortSignal

Promise<OAuthTokens>


refresh(opts): Promise<OAuthTokens>

Defined in: packages/core/src/adapters/oauth.ts:28

Mint a new access token from a refresh token.

string

AbortSignal

Promise<OAuthTokens>