Class

Dispatcher

Dispatcher(options)

A class that dispatches custom events.
Constructor

# new Dispatcher(options)

Parameters:
Name Type Description
options DispatcherOptions The options that can be used

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

Classes

Dispatcher

Methods

# 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 84

# dispatchSessionExpiredEvent()

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

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

# dispatchUserDeletedEvent()

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

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

# dispatchUserLoggedOutEvent()

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

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