Type Alias GraffitiSessionInitializedEvent

GraffitiSessionInitializedEvent: CustomEvent<
    { error?: Error; href?: string }
    | null
    | undefined,
>

The event type produced in Graffiti.sessionEvents after an application has attempted to complete any login redirects and restore any previously active sessions. Successful session restores will be returned in parallel as their own GraffitiLoginEvent events.

This event optionally returns an href property representing the URL the user originated a login request from, which may be useful for redirecting the user back to the page they were on after login. The event name to listen for is initialized.