OAuthClient
Defined in: packages/core/src/adapters/oauth.ts:18
Authorization-code grant against one service, with the operator’s client credentials held inside.
Methods
Section titled “Methods”authorizeUrl()
Section titled “authorizeUrl()”authorizeUrl(
opts):string
Defined in: packages/core/src/adapters/oauth.ts:20
Consent-screen URL to send the user to.
Parameters
Section titled “Parameters”redirectUri
Section titled “redirectUri”string
string
Returns
Section titled “Returns”string
exchangeCode()
Section titled “exchangeCode()”exchangeCode(
opts):Promise<OAuthTokens>
Defined in: packages/core/src/adapters/oauth.ts:22
Exchange the callback code for tokens.
Parameters
Section titled “Parameters”string
redirectUri
Section titled “redirectUri”string
signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<OAuthTokens>
refresh()
Section titled “refresh()”refresh(
opts):Promise<OAuthTokens>
Defined in: packages/core/src/adapters/oauth.ts:28
Mint a new access token from a refresh token.
Parameters
Section titled “Parameters”refreshToken
Section titled “refreshToken”string
signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<OAuthTokens>