UNPKG

oidc-client-rx

Version:

ReactiveX enhanced OIDC and OAuth2 protocol support for browser-based JavaScript applications

17 lines 1.34 kB
import type { OpenIdConfiguration } from "../config/openid-configuration"; import type { AuthResult } from "../flows/callback-context"; export type StorageKeys = "authnResult" | "authzData" | "access_token_expires_at" | "authWellKnownEndPoints" | "userData" | "authNonce" | "codeVerifier" | "authStateControl" | "reusable_refresh_token" | "session_state" | "storageSilentRenewRunning" | "storageCodeFlowInProgress" | "storageCustomParamsAuthRequest" | "storageCustomParamsRefresh" | "storageCustomParamsEndSession" | "redirect" | "configIds" | "jwtKeys" | "popupauth"; export declare class StoragePersistenceService { private readonly browserStorageService; read(key: StorageKeys, config: OpenIdConfiguration): any; write(key: StorageKeys, value: any, config: OpenIdConfiguration): boolean; remove(key: StorageKeys, config: OpenIdConfiguration): void; clear(config: OpenIdConfiguration): void; resetStorageFlowData(config: OpenIdConfiguration): void; resetAuthStateInStorage(config: OpenIdConfiguration): void; getAccessToken(config: OpenIdConfiguration): string; getIdToken(config: OpenIdConfiguration): string; getRefreshToken(config: OpenIdConfiguration): string; getAuthenticationResult(config: OpenIdConfiguration): AuthResult; } //# sourceMappingURL=storage-persistence.service.d.ts.map