@morojs/moro / AuthOptions
Interface: AuthOptions
Defined in: src/types/auth.ts:277
Properties
adapter?
optionaladapter?:AuthAdapter
Defined in: src/types/auth.ts:305
basePath?
optionalbasePath?:string
Defined in: src/types/auth.ts:321
callbacks?
optionalcallbacks?:AuthCallbacks
Defined in: src/types/auth.ts:299
cookies?
optionalcookies?:Partial<AuthCookies>
Defined in: src/types/auth.ts:311
debug?
optionaldebug?:boolean
Defined in: src/types/auth.ts:320
events?
optionalevents?:AuthEvents
Defined in: src/types/auth.ts:302
experimental?
optionalexperimental?:object
Defined in: src/types/auth.ts:329
Index Signature
[key: string]: any
enableWebAuthn?
optionalenableWebAuthn?:boolean
jwt?
optionaljwt?:object
Defined in: src/types/auth.ts:291
decode?
optionaldecode?: (params) =>Awaitable<AuthJWT|null>
Parameters
params
secret
string
token?
string
Returns
Awaitable<AuthJWT | null>
encode?
optionalencode?: (params) =>Awaitable<string>
Parameters
params
maxAge?
number
secret
string
token?
Returns
Awaitable<string>
maxAge?
optionalmaxAge?:number
secret?
optionalsecret?:string
logger?
optionallogger?:AuthLogger
Defined in: src/types/auth.ts:317
pages?
optionalpages?:AuthPages
Defined in: src/types/auth.ts:308
providers
providers:
AuthProvider[]
Defined in: src/types/auth.ts:279
secret?
optionalsecret?:string
Defined in: src/types/auth.ts:280
session?
optionalsession?:object
Defined in: src/types/auth.ts:283
generateSessionToken?
optionalgenerateSessionToken?: () =>string
Returns
string
maxAge?
optionalmaxAge?:number
strategy?
optionalstrategy?:"database"|"jwt"
updateAge?
optionalupdateAge?:number
skipCSRFCheck?
optionalskipCSRFCheck?:string[]
Defined in: src/types/auth.ts:326
theme?
optionaltheme?:AuthTheme
Defined in: src/types/auth.ts:314
trustHost?
optionaltrustHost?:boolean
Defined in: src/types/auth.ts:323
useSecureCookies?
optionaluseSecureCookies?:boolean
Defined in: src/types/auth.ts:322