AuthEventEmitter
Event emitter returned from init.
Index🔗
Methods🔗
emit🔗
emit(event: TRIGGER_SSO_POPUP , args: any[] ) : boolean
Trigger an event on the emitter returned from init.
Function Parameters
- event
-
-
event: TRIGGER_SSO_POPUP
-
- args
-
-
args: any[]
-
Returns
boolean
off🔗
off(event: AuthStatus , listener: (args: any[] ) : void , context: any , once: boolean ) : AuthEventEmitter
Remove listener from the emitter returned from init.
Function Parameters
- event
-
-
event: AuthStatus
-
- listener
-
-
listener: (args: any[] ) : void
-
(args: any[] ) : void
Function Parameters
- args
-
-
args: any[]
-
Returns
void
- context
-
-
context: any
-
- once
-
-
once: boolean
-
Returns
on🔗
on(event: FAILURE , listener: (failureType: AuthFailureType ) : void ) : AuthEventEmitter
Register a listener on Auth failure.
Function Parameters
- event
-
-
event: FAILURE
-
- listener
-
-
listener: (failureType: AuthFailureType ) : void
-
(failureType: AuthFailureType ) : void
Function Parameters
- failureType
-
-
failureType: AuthFailureType
-
Returns
void
Returns
on(event: SDK_SUCCESS | LOGOUT | WAITING_FOR_POPUP , listener: () : void ) : AuthEventEmitter
Register a listener on Auth SDK success.
Function Parameters
- event
-
-
event: SDK_SUCCESS | LOGOUT | WAITING_FOR_POPUP
-
- listener
-
-
listener: () : void
-
() : void
Returns
void
Returns
on(event: SUCCESS , listener: (sessionInfo: any ) : void ) : AuthEventEmitter
Function Parameters
- event
-
-
event: SUCCESS
-
- listener
-
-
listener: (sessionInfo: any ) : void
-
(sessionInfo: any ) : void
Function Parameters
- sessionInfo
-
-
sessionInfo: any
-
Returns
void
Returns
once🔗
once(event: FAILURE , listener: (failureType: AuthFailureType ) : void ) : AuthEventEmitter
Function Parameters
- event
-
-
event: FAILURE
-
- listener
-
-
listener: (failureType: AuthFailureType ) : void
-
(failureType: AuthFailureType ) : void
Function Parameters
- failureType
-
-
failureType: AuthFailureType
-
Returns
void
Returns
once(event: SDK_SUCCESS | LOGOUT | WAITING_FOR_POPUP , listener: () : void ) : AuthEventEmitter
Function Parameters
- event
-
-
event: SDK_SUCCESS | LOGOUT | WAITING_FOR_POPUP
-
- listener
-
-
listener: () : void
-
() : void
Returns
void
Returns
once(event: SUCCESS , listener: (sessionInfo: any ) : void ) : AuthEventEmitter
Function Parameters
- event
-
-
event: SUCCESS
-
- listener
-
-
listener: (sessionInfo: any ) : void
-
(sessionInfo: any ) : void
Function Parameters
- sessionInfo
-
-
sessionInfo: any
-
Returns
void
Returns
removeAllListeners🔗
removeAllListeners(event: AuthStatus ) : AuthEventEmitter
Remove all the event listeners
Function Parameters
- event
-
-
event: AuthStatus
-
Returns