UNPKG

1.93 kBTypeScriptView Raw
1import { ClientAuthError } from "./ClientAuthError";
2import { TelemetryOptions } from "../Configuration";
3interface IClientConfigurationErrorMessage {
4 code: string;
5 desc: string;
6}
7export declare const ClientConfigurationErrorMessage: Record<string, IClientConfigurationErrorMessage>;
8/**
9 * Error thrown when there is an error in configuration of the .js library.
10 */
11export declare class ClientConfigurationError extends ClientAuthError {
12 constructor(errorCode: string, errorMessage?: string);
13 static createNoSetConfigurationError(): ClientConfigurationError;
14 static createStorageNotSupportedError(givenCacheLocation: string): ClientConfigurationError;
15 static createRedirectCallbacksNotSetError(): ClientConfigurationError;
16 static createInvalidCallbackObjectError(callbackObject: object): ClientConfigurationError;
17 static createEmptyScopesArrayError(scopesValue: string): ClientConfigurationError;
18 static createScopesNonArrayError(scopesValue: string): ClientConfigurationError;
19 static createScopesRequiredError(scopesValue: string[]): ClientConfigurationError;
20 static createInvalidPromptError(promptValue: string): ClientConfigurationError;
21 static createClaimsRequestParsingError(claimsRequestParseError: string): ClientConfigurationError;
22 static createEmptyRequestError(): ClientConfigurationError;
23 static createInvalidCorrelationIdError(): ClientConfigurationError;
24 static createKnownAuthoritiesNotSetError(): ClientConfigurationError;
25 static createInvalidAuthorityTypeError(): ClientConfigurationError;
26 static createUntrustedAuthorityError(host: string): ClientConfigurationError;
27 static createTelemetryConfigError(config: TelemetryOptions): ClientConfigurationError;
28 static createSsoSilentError(): ClientConfigurationError;
29 static createInvalidAuthorityMetadataError(): ClientConfigurationError;
30}
31export {};