Function createAndSetSession
- createAndSetSession(
lucia: Lucia<Record<never, never>, Record<never, never>>,
userId: string,
cookies: Cookies,
): Promise<void> Parameters
- lucia: Lucia<Record<never, never>, Record<never, never>>
- userId: string
- cookies: Cookies
Returns Promise<void>
Creates a new session for the given user and sets it