@avaya/infinity-agent-sdk - v1.0.0
    Preparing search index...

    Emitted when the agent's session is terminated by the platform.

    This event fires when the platform ends the agent's session - for example due to a session timeout, an administrative action, or the agent being logged out remotely.

    user.subscribe(UserEventType.USER_LOGOUT, (event) => {
    console.log("Session ended for agent:", event.payload.userId);
    // Clear state and redirect to login
    });
    interface UserLogoutEvent {
        occurredAt: Date;
        type: USER_LOGOUT;
        payload: UserLogoutPayload;
    }
    Index

    Properties

    occurredAt: Date

    The timestamp when the event occurred.

    The type of the user event.

    The event payload containing event-specific data.