Hierarchy (view full)

Constructors

Properties

_agent: any
_auth: any
_subscribers: any
agentStore: types.AgentStore
authStore: types.AuthStore
initialAgentState: any
initialAuthState: any
updateAgentState: any
updateAuthState: any
initializeAgent: any
subscribeAgent: ((callback, initialize?) => (() => void))

Type declaration

    • (callback, initialize?): (() => void)
    • Parameters

      • callback: ((agent) => void)
      • Optional initialize: boolean

      Returns (() => void)

        • (): void
        • Returns void

unsubscribeAgent: ((callback) => void)

Type declaration

    • (callback): void
    • Parameters

      • callback: ((agent) => void)

      Returns void

notifySubscribers: any
updateAgent: ((options?) => Promise<void>)

Type declaration

authenticate: (() => Promise<types.Identity>)

Type declaration

login: ((options?) => Promise<void>)

Type declaration

logout: ((options?) => Promise<void>)

Type declaration

    • (options?): Promise<void>
    • Parameters

      • Optional options: {
            returnTo?: string;
        }
        • Optional returnTo?: string

      Returns Promise<void>

getAgent: (() => types.HttpAgent)

Type declaration

getAgentHost: (() => undefined | URL)

Type declaration

    • (): undefined | URL
    • Returns undefined | URL

getAgentHostName: (() => string)

Type declaration

    • (): string
    • Returns string

getIsLocal: (() => boolean)

Type declaration

    • (): boolean
    • Returns boolean

getNetwork: (() => "local" | "remote" | "ic")

Type declaration

    • (): "local" | "remote" | "ic"
    • Returns "local" | "remote" | "ic"

getAgentState: (() => types.AgentState)

Type declaration

subscribeAgentState: ((listener) => (() => void))

Type declaration

    • (listener): (() => void)
    • Parameters

      Returns (() => void)

        • (): void
        • Returns void

getAuthState: (() => types.AuthState)

Type declaration

subscribeAuthState: ((listener) => (() => void))

Type declaration

    • (listener): (() => void)
    • Parameters

      Returns (() => void)

        • (): void
        • Returns void

getAuth: (() => null | types.AuthClient)

Type declaration

getIdentity: (() => null | types.Identity)

Type declaration

getPrincipal: (() => null | types.Principal)

Type declaration