@morojs/moro / AuthOptions
Interface: AuthOptions
Defined in: src/types/auth.ts:277
Properties
adapter?
optional
adapter:AuthAdapter
Defined in: src/types/auth.ts:305
basePath?
optional
basePath:string
Defined in: src/types/auth.ts:321
callbacks?
optional
callbacks:AuthCallbacks
Defined in: src/types/auth.ts:299
cookies?
optional
cookies:Partial
<AuthCookies
>
Defined in: src/types/auth.ts:311
debug?
optional
debug:boolean
Defined in: src/types/auth.ts:320
events?
optional
events:AuthEvents
Defined in: src/types/auth.ts:302
experimental?
optional
experimental:object
Defined in: src/types/auth.ts:329
Index Signature
[key
: string
]: any
enableWebAuthn?
optional
enableWebAuthn:boolean
jwt?
optional
jwt:object
Defined in: src/types/auth.ts:291
decode()?
optional
decode: (params
) =>Awaitable
<null
|AuthJWT
>
Parameters
params
secret
string
token?
string
Returns
Awaitable
<null
| AuthJWT
>
encode()?
optional
encode: (params
) =>Awaitable
<string
>
Parameters
params
maxAge?
number
secret
string
token?
Returns
Awaitable
<string
>
maxAge?
optional
maxAge:number
secret?
optional
secret:string
logger?
optional
logger:AuthLogger
Defined in: src/types/auth.ts:317
pages?
optional
pages:AuthPages
Defined in: src/types/auth.ts:308
providers
providers:
AuthProvider
[]
Defined in: src/types/auth.ts:279
secret?
optional
secret:string
Defined in: src/types/auth.ts:280
session?
optional
session:object
Defined in: src/types/auth.ts:283
generateSessionToken()?
optional
generateSessionToken: () =>string
Returns
string
maxAge?
optional
maxAge:number
strategy?
optional
strategy:"jwt"
|"database"
updateAge?
optional
updateAge:number
skipCSRFCheck?
optional
skipCSRFCheck:string
[]
Defined in: src/types/auth.ts:326
theme?
optional
theme:AuthTheme
Defined in: src/types/auth.ts:314
trustHost?
optional
trustHost:boolean
Defined in: src/types/auth.ts:323
useSecureCookies?
optional
useSecureCookies:boolean
Defined in: src/types/auth.ts:322