UNPKG

idle-session-timeout

Version:

Idle session timeout is a security and resource management feature that automatically logs a user out after a period of inactivity

18 lines (17 loc) 592 B
import { IIdleSessionTimeout } from "../contracts/IIdleSessionTimeout"; export declare class IdleSessionTimeout implements IIdleSessionTimeout { constructor(timeSpan: number, ...resetEvents: string[]); private _timeSpan; private _resetEvents; private _timerId?; private _timeLeftChangeEvent?; private _restTime?; start: () => void; onTimeLeftChange?: (timeLeft: number) => void; onTimeOut?: () => void; reset: () => void; dispose: () => void; getTimeLeft: () => number; private _onTimeOut; private _onTimeLeftChange; }