UNPKG

angular-simple-oidc

Version:

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

30 lines (29 loc) 1.73 kB
import { OnDestroy } from '@angular/core'; import { OidcDiscoveryDocClient } from '../discovery-document/oidc-discovery-doc-client.service'; import { DynamicIframeService } from '../dynamic-iframe/dynamic-iframe.service'; import { TokenStorageService } from '../token-storage.service'; import { Subject } from 'rxjs'; import { SessionManagementConfig } from './models'; import { ConfigService } from 'angular-simple-oidc/config'; import { AuthConfig } from '../config/models'; import { EventsService } from 'angular-simple-oidc/events'; export declare class SessionCheckService implements OnDestroy { protected readonly window: Window; protected readonly discoveryClient: OidcDiscoveryDocClient; protected readonly dynamicIframe: DynamicIframeService; protected readonly tokenStorage: TokenStorageService; protected readonly config: ConfigService<AuthConfig>; protected readonly sessionConfig: ConfigService<SessionManagementConfig>; protected readonly events: EventsService; protected destroyedSubject: Subject<unknown>; constructor(window: Window, discoveryClient: OidcDiscoveryDocClient, dynamicIframe: DynamicIframeService, tokenStorage: TokenStorageService, config: ConfigService<AuthConfig>, sessionConfig: ConfigService<SessionManagementConfig>, events: EventsService); ngOnDestroy(): void; startSessionCheck(): import("rxjs").Observable<"changed" | "unchanged">; /** * The received data will either be changed or unchanged * unless the syntax of the message sent was determined by the OP to be malformed, * in which case the received data will be error. * @param msg */ protected fireEventsFromMessage(msg: MessageEvent): "changed" | "unchanged"; }