OAuthProvider
Defined in: types.ts:34
Properties
Section titled “Properties”callbackMethod?
Section titled “callbackMethod?”
optionalcallbackMethod?:"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
Section titled “defaultScope”defaultScope:
string[]
Defined in: types.ts:36
usePkce
Section titled “usePkce”usePkce:
boolean
Defined in: types.ts:35
Methods
Section titled “Methods”buildAuthUrl()
Section titled “buildAuthUrl()”buildAuthUrl(
params):string
Defined in: types.ts:43
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”string
exchangeCode()
Section titled “exchangeCode()”exchangeCode(
params):Promise<string>
Defined in: types.ts:44
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<string>
fetchProfile()
Section titled “fetchProfile()”fetchProfile(
accessToken,extras?):Promise<OAuthProfile>
Defined in: types.ts:45
Parameters
Section titled “Parameters”accessToken
Section titled “accessToken”string
extras?
Section titled “extras?”Returns
Section titled “Returns”Promise<OAuthProfile>