Skip to content

OAuthProvider

Defined in: types.ts:34

optional callbackMethod?: "GET" | "POST"

Defined in: types.ts:42

HTTP method of the provider’s callback. Default “GET”. “POST” providers (Apple’s response_mode=form_post) receive code/state (and any provider-specific fields) in the form-encoded body instead of the query string.


defaultScope: string[]

Defined in: types.ts:36


usePkce: boolean

Defined in: types.ts:35

buildAuthUrl(params): string

Defined in: types.ts:43

AuthUrlParams

string


exchangeCode(params): Promise<string>

Defined in: types.ts:44

CodeExchangeParams

Promise<string>


fetchProfile(accessToken, extras?): Promise<OAuthProfile>

Defined in: types.ts:45

string

CallbackExtras

Promise<OAuthProfile>