Creates a new session for the given user and sets it

  • Parameters

    • lucia: Lucia<Record<never, never>, Record<never, never>>

      The Lucia instance to use

    • userId: string

      The user to create the session for

    • cookies: Cookies

      The cookies to use

    Returns Promise<void>