Handles HTTP authentication and reauthentication for MindsDB Cloud.

Hierarchy

  • default

Constructors

Properties

managed: boolean = false

MindsDb managed instance

password: string = ''

MindsDB password used for authentication.

session: undefined | string

Session used for authentication.

user: string = ''

MindsDB email used for authentication.

Methods

  • Logs into MindsDB Cloud and stores the returned session.

    Parameters

    • axiosClient: Axios

      Axios instance to use when sending login request.

    • user: string

      MindsDB email to use for logging in.

    • password: string

      MindsDB password to use for logging in.

    • Optional managed: boolean

    Returns Promise<void>

  • Returns

    • True if we successfully reauthenticated, false if not needed.

    Parameters

    • axiosClient: Axios

      Axios instance to use when sending login request.

    • error: any

      Original error to inspect for determining if we need to reauthenticate.

    Returns Promise<boolean>

Generated using TypeDoc