Skip to main content

Interface: OAuthProvider

Defined in: types.ts:47

Configuration for a third-party OAuth 2.0 provider. This is the generic, provider-agnostic shape consumed by createOAuthClient. Pre-built presets (e.g. createTikTokClient) assemble this for you.

Properties

authorizationUrl

authorizationUrl: string

Defined in: types.ts:49

Authorization endpoint the user is redirected to in order to log in.


clientId

clientId: string

Defined in: types.ts:53

OAuth client identifier issued by the provider.


clientSecret

clientSecret: string

Defined in: types.ts:55

OAuth client secret issued by the provider.


params?

optional params?: ProviderParamOverrides

Defined in: types.ts:57

Overrides for providers that deviate from RFC 6749 parameter names.


parseTokenResponse?

optional parseTokenResponse?: TokenResponseParser

Defined in: types.ts:59

Custom parser for non-standard token endpoint responses.


tokenUrl

tokenUrl: string

Defined in: types.ts:51

Token endpoint used for both code exchange and refresh.