Preparing search index...
The search index is not available
svelte-starter-docs
svelte-starter-docs
lib/middleware/auth
initializeLucia
Function initializeLucia
initializeLucia
(
db
:
any
,
)
:
Lucia
<
Record
<
never
,
never
>
,
{
id
:
any
;
username
:
any
;
name
:
any
;
email
:
any
;
authMethods
:
any
;
avatarUrl
:
any
;
isVerified
:
boolean
;
isAdmin
:
boolean
;
createdAt
:
string
;
modifiedAt
:
string
;
}
,
>
Initialize Lucia.
Parameters
db
:
any
The database to use.
Returns
Lucia
<
Record
<
never
,
never
>
,
{
id
:
any
;
username
:
any
;
name
:
any
;
email
:
any
;
authMethods
:
any
;
avatarUrl
:
any
;
isVerified
:
boolean
;
isAdmin
:
boolean
;
createdAt
:
string
;
modifiedAt
:
string
;
}
,
>
The initialized Lucia instance.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Source Code
svelte-starter-docs
Loading...
Initialize Lucia.