Lucia.createSession()
Method of Lucia
. Creates a new session.
Definition
function createSession(
userId: UserId,
attributes: DatabaseSessionAttributes,
options?: {
sessionId?: string;
}
): Promise<Session>;
Parameters
userId
attributes
: Database session attributesoptions
:sessionId