Class

Dispatcher

Dispatcher()

A class that dispatches custom events.
Constructor

# new Dispatcher()

View Source lib/events/Dispatcher.ts, line 9

Methods

# dispatchAfterStateChangeEvent(detail)

Dispatches a "hanko-after-state-change" event to the document.
Parameters:
Name Type Description
detail FlowDetail

View Source lib/events/Dispatcher.ts, line 105

# dispatchBeforeStateChangeEvent(detail)

Dispatches a "hanko-before-state-change" event to the document.
Parameters:
Name Type Description
detail FlowDetail

View Source lib/events/Dispatcher.ts, line 112

# dispatchSessionCreatedEvent(detail)

Dispatches a "hanko-session-created" event to the document with the specified detail.
Parameters:
Name Type Description
detail SessionDetail The event detail.

View Source lib/events/Dispatcher.ts, line 80

# dispatchSessionExpiredEvent()

Dispatches a "hanko-session-expired" event to the document.

View Source lib/events/Dispatcher.ts, line 86

# dispatchUserDeletedEvent()

Dispatches a "hanko-user-deleted" event to the document.

View Source lib/events/Dispatcher.ts, line 98

# dispatchUserLoggedOutEvent()

Dispatches a "hanko-user-logged-out" event to the document.

View Source lib/events/Dispatcher.ts, line 92