UNPKG

@criipto/verify-react

Version:

Verify SDK for React Single Page Applications

26 lines (25 loc) 1.23 kB
import { Action } from './context'; import { type Language } from './i18n'; export declare const VERSION: string; export declare const DKMITID_PREFIX = "urn:grn:authn:dk:mitid"; export declare const DKMITID_BUSINESS = "urn:grn:authn:dk:mitid:business"; export declare const FTN_PREFIX = "urn:grn:authn:fi"; export declare function lowestMitIDValue(input: string[]): string | null; export declare function assertUnreachable(x: never): never; export declare function stringifyAction(language: Language, action: Action): string; export declare function acrValueToProviderPrefix(value: string): string; export declare function acrValueToTitle(language: Language, value: string, { disambiguate }: { disambiguate: boolean; }): { title: string; subtitle?: string; }; export declare function filterAcrValues(input: string[]): string[]; export declare function isSingle(acrValue: string, acrValues: string[]): boolean; /** * A provider is considered ambiguous iff: * 1. It is in the list of ambiguous providers * 2. There is another ambiguous provider in the arc values list */ export declare function isAmbiguous(acrValue: string, acrValues: string[]): boolean; export declare function trySessionStorage(): Storage | null;