Class UnifiAuth

Hierarchy

  • ObjectWithPrivateValues
    • UnifiAuth

Constructors

Properties

autoReLogin: boolean = true
controllerInstance: AxiosInstance
csrfToken?: string
rememberMe: boolean
token?: string
unifiOs: boolean

Accessors

Methods

  • Parameters

    • instance: AxiosInstance

    Returns AxiosInstance

  • Parameters

    • instance: AxiosInstance

    Returns void

  • Parameters

    • authenticationRequest: boolean = false

    Returns Promise<(CookieSerializeOptions & {
        name: string;
        value: string;
    })[]>

  • Parameters

    • res: AxiosResponse<any, any>

    Returns CookieMap

  • Returns Promise<undefined | string>

  • Parameters

    • site: string = 'default'

    Returns Promise<undefined | string>

  • Parameters

    • Optional token2FA: string

      2FA token, will disable re-login

    Returns Promise<IUser>

  • Type Parameters

    • T

      the type to set.

    Parameters

    • key: string

      the key to set

    • value: T

      the value

    Returns void

Generated using TypeDoc