GraffitiLogoutEvent: CustomEvent<
    { actor?: string; error: Error }
    | { actor: string; error?: undefined },
>

The event type produced in Graffiti.sessionEvents when a user logs out either manually with Graffiti.logout or when their session times out or otherwise becomes invalid. The event name to listen for is logout.