• Generates tokens, and securely stores them in the user's cookies

    Parameters

    • res: ResType

      API Request object

    • userId: string

      API Response object

    Returns Promise<void>