Constructor
# new Relay(api, options)
Parameters:
Name | Type | Description |
---|---|---|
api |
string
|
The API endpoint URL. |
options |
InternalOptions
|
The internal configuration options of the SDK. |
Extends
Classes
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. |
# dispatchSessionExpiredEvent()
Dispatches a "hanko-session-expired" event to the document.
# dispatchUserDeletedEvent()
Dispatches a "hanko-user-deleted" event to the document.
# dispatchUserLoggedOutEvent()
Dispatches a "hanko-user-logged-out" event to the document.