UNPKG

angular-simple-oidc

Version:

Angular Library implementing Open Id Connect specification. Code Flow, Refresh Tokens, Session Management, Discovery Document.

19 lines (18 loc) 778 B
import { OnDestroy } from '@angular/core'; import { Subject } from 'rxjs'; import { AuthService } from '../auth.service'; import { EventsService } from 'angular-simple-oidc/events'; export declare class TokenExpirationDaemonService implements OnDestroy { protected readonly auth: AuthService; protected readonly events: EventsService; protected readonly destroyedSubject: Subject<unknown>; constructor(auth: AuthService, events: EventsService); startDaemon(): void; /** * Sets timeouts based on the token expiration. * Dispatches AccessTokenExpiringEvent before the access token expires (grace period) * Dispatches AccessTokenExpiredEvent when the access token expires. */ watchTokenExpiration(): void; ngOnDestroy(): void; }