Properties
Private
_agent
_agent: any
Private
_auth
_auth: any
Private
_subscribers
_subscribers: any
agentStore
authStore
Private
initialAgentState
initialAgentState: any
Private
initialAuthState
initialAuthState: any
Private
updateAgentState
updateAgentState: any
Private
updateAuthState
updateAuthState: any
Private
initializeAgent
initializeAgent: any
subscribeAgent
subscribeAgent: ((callback, initialize?) => (() => void))
Type declaration
- (callback, initialize?): (() => void)
Parameters
- callback: ((agent) => void)
- (agent): void
Returns void
Optional
initialize: boolean
Returns (() => void)
unsubscribeAgent
unsubscribeAgent: ((callback) => void)
Type declaration
- (callback): void
Parameters
- callback: ((agent) => void)
- (agent): void
Returns void
Returns void
Private
notifySubscribers
notifySubscribers: any
updateAgent
updateAgent: ((options?) => Promise<void>) authenticate
login
login: ((options?) => Promise<void>) logout
logout: ((options?) => Promise<void>) Type declaration
- (options?): Promise<void>
Parameters
Optional
options: {
returnTo?: string;
}Optional
returnTo?: string
getAgent
getAgentHost
getAgentHost: (() => undefined | URL) Type declaration
- (): undefined | URL
Returns undefined | URL
getAgentHostName
getAgentHostName: (() => string)
getIsLocal
getIsLocal: (() => boolean)
Type declaration
- (): boolean
Returns boolean
getNetwork
getNetwork: (() => "ic" | "local" | "remote")
Type declaration
- (): "ic" | "local" | "remote"
Returns "ic" | "local" | "remote"
getAgentState
subscribeAgentState
subscribeAgentState: ((listener) => (() => void))
Type declaration
- (listener): (() => void)
Parameters
- listener: ((state, prevState) => void)
- (state, prevState): void
Returns void
Returns (() => void)
getAuthState
subscribeAuthState
subscribeAuthState: ((listener) => (() => void))
Type declaration
- (listener): (() => void)
Parameters
- listener: ((state, prevState) => void)
- (state, prevState): void
Returns void
Returns (() => void)
getAuth
getIdentity
getPrincipal