Skip to main content

# subscribeToResetSession()

    function subscribeToResetSession(onResetListener: RESETLISTENER): (...args: []) => void;

Subscribes to session reset events. The callback is invoked when the session idle time is reset.

## Parameters​

### onResetListener​

`RESETLISTENER`

Callback function that receives reset modal flag

## Returns​

Unsubscribe function to remove the listener

    (...args: []): void;

### Parameters​

#### args​

...[]

### Returns​

`void`

## Example​

    subscribeToResetSession((shouldResetModal) => {
      if (shouldResetModal) {
        closeWarningModal();
      }
    });