AuthEventEmitter

AuthEventEmitter

Event emitter returned from init.

Methods🔗

emit🔗

emit(event: TRIGGER_SSO_POPUP , args: any[] ) : boolean

Trigger an event on the emitter returned from init.

Function Parameters

event
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
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
listener

(failureType: AuthFailureType ) : void

Function Parameters

failureType

Returns

void

Returns

on(event: SDK_SUCCESS | LOGOUT | WAITING_FOR_POPUP , listener: () : void ) : AuthEventEmitter

Register a listener on Auth SDK success.

Function Parameters

event
listener
  • listener: () : void

() : void

Returns

void

Returns

on(event: SUCCESS , listener: (sessionInfo: any ) : void ) : AuthEventEmitter

Function Parameters

event
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
listener

(failureType: AuthFailureType ) : void

Function Parameters

failureType

Returns

void

Returns

once(event: SDK_SUCCESS | LOGOUT | WAITING_FOR_POPUP , listener: () : void ) : AuthEventEmitter

Function Parameters

event
listener
  • listener: () : void

() : void

Returns

void

Returns

once(event: SUCCESS , listener: (sessionInfo: any ) : void ) : AuthEventEmitter

Function Parameters

event
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

Returns