UNPKG

@axa-fr/oidc-client

Version:

OpenID Connect & OAuth authentication using native javascript only, compatible with angular, react, vue, svelte, next, etc.

32 lines 1.77 kB
import { ILOidcLocation } from './location'; import { OidcConfiguration } from './types.js'; export declare const sleepAsync: ({ milliseconds }: { milliseconds: any; }) => Promise<unknown>; export declare const defaultServiceWorkerUpdateRequireCallback: (location: ILOidcLocation) => (registration: any, stopKeepAlive: () => void) => Promise<void>; export declare const getTabId: (configurationName: string) => string; export declare const initWorkerAsync: (configuration: OidcConfiguration, configurationName: string) => Promise<{ clearAsync: (status: any) => Promise<any>; initAsync: (oidcServerConfiguration: any, where: any, oidcConfiguration: OidcConfiguration) => Promise<{ tokens: import('./parseTokens.js').Tokens; status: any; }>; startKeepAliveServiceWorker: () => void; setSessionStateAsync: (sessionState: string) => Promise<any>; getSessionStateAsync: () => Promise<any>; setNonceAsync: (nonce: any) => Promise<any>; getNonceAsync: (fallback?: boolean) => Promise<{ nonce: any; }>; setLoginParams: (data: any) => void; getLoginParams: () => any; getStateAsync: (fallback?: boolean) => Promise<any>; setStateAsync: (state: string) => Promise<any>; getCodeVerifierAsync: (fallback?: boolean) => Promise<any>; setCodeVerifierAsync: (codeVerifier: string) => Promise<any>; setDemonstratingProofOfPossessionNonce: (demonstratingProofOfPossessionNonce: string) => Promise<void>; getDemonstratingProofOfPossessionNonce: () => Promise<any>; setDemonstratingProofOfPossessionJwkAsync: (demonstratingProofOfPossessionJwk: JsonWebKey) => Promise<void>; getDemonstratingProofOfPossessionJwkAsync: () => Promise<any>; }>; //# sourceMappingURL=initWorker.d.ts.map