Documentation / zerotal / auth / OAuth2Config
Interface: OAuth2Config
Defined in: packages/auth/src/social/types.ts:46
Per-provider OAuth2 credentials passed to a driver's constructor (and stored in
config/social.ts). redirectUrl must exactly match the callback URL
registered with the provider — the driver always uses it verbatim and never
derives it from the incoming request.
Extended by
Properties
clientId
clientId:
string
Defined in: packages/auth/src/social/types.ts:48
OAuth2 client / application ID issued by the provider.
clientSecret?
optionalclientSecret?:string
Defined in: packages/auth/src/social/types.ts:50
Static client secret, or omit for Apple and supply teamId/keyId/privateKey instead.
redirectUrl
redirectUrl:
string
Defined in: packages/auth/src/social/types.ts:52
Fixed callback URL, matching the one registered with the provider.
scopes?
optionalscopes?:string[]
Defined in: packages/auth/src/social/types.ts:54
Scopes to request; when omitted the driver's defaultScopes() are used.