UNPKG

neo4j-client-sso

Version:

Single sign-on client (frontend) library for Neo4j products

15 lines (14 loc) 1.09 kB
import { Credentials, InitialisationParameters, SSOProviderOriginal } from './types'; export declare const getInitialisationParameters: () => InitialisationParameters; export declare const getValidSSOProviders: (discoveredSSOProviders: Partial<SSOProviderOriginal>[]) => SSOProviderOriginal[]; export declare const getCredentialsFromAuthResult: (result: Record<string, string | number | boolean>, selectedSSOProvider: SSOProviderOriginal) => Credentials; export declare const temporarilyStoreUrlSearchParams: () => void; export declare const storeRefreshTokenData: (refreshToken: string, selectedSSOProviderId: string) => void; export declare const retrieveRefreshTokenData: () => { refreshToken: string | null; selectedSSOProviderId: string | null; }; export declare const clearRefreshTokenData: () => void; export declare const getSSOServerIdIfShouldRedirect: () => string; export declare const wasRedirectedBackFromSSOServer: () => boolean; export declare const restoreSearchAndHashParams: (toRetrieveParams?: string[], isClearStore?: boolean) => Record<string, string> | null;