Skip to content

AuthConfig

Defined in: src/plugins/auth.ts:37

optional cookieOptions: object

Defined in: src/plugins/auth.ts:40

optional httpOnly: boolean

optional maxAge: number

optional path: string

optional sameSite: "Lax" | "Strict" | "None"

optional secure: boolean


optional jwtExpiration: string

Defined in: src/plugins/auth.ts:39


jwtSecret: string | Uint8Array<ArrayBufferLike>

Defined in: src/plugins/auth.ts:38


optional onSuccess: (user, ctx) => any

Defined in: src/plugins/auth.ts:47

AuthUser

ShokupanContext

any


providers: object

Defined in: src/plugins/auth.ts:48

[key: string]: ProviderConfig

optional apple: ProviderConfig

optional auth0: ProviderConfig

optional github: ProviderConfig

optional google: ProviderConfig

optional microsoft: ProviderConfig

optional oauth2: ProviderConfig

optional okta: ProviderConfig