UNPKG

session-expiration-alert

Version:

An Angular module to time session expiration. When user session idle time reaches a threshold, then pop up a modal dialog to let user choose to continue session or log out the system. When user session is expired, timer will stop and user will be logged o

23 lines (22 loc) 728 B
import * as i0 from "@angular/core"; export declare class SessionInterruptService { constructor(); /** * Method to refresh session cookie. Normally, this method issue a quick API call to server. * * @memberof SessionInterruptService */ continueSession(): void; /** * Method to remove session cookie. Normally, this method redirect to website logout endpoint. * * @memberof SessionInterruptService */ stopSession(): void; /** * Method to handle expiration event. Can be empty. */ onExpire(): void; static ɵfac: i0.ɵɵFactoryDeclaration<SessionInterruptService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<SessionInterruptService>; }