• Logs in to the Moodle site using the provided credentials and returns a fetch instance with authenticated cookies.

    Parameters

    • base: string

      The base URL of the Moodle site.

    • username: string

      The username of the user to log in.

    • password: string

      The password of the user to log in.

    Returns Promise<typeof __type>

    A fetch instance with authenticated cookies.

    Throws

    An error if the login fails.

Generated using TypeDoc