UNPKG

@azure/msal-browser

Version:
55 lines (54 loc) 1.89 kB
import { AuthError } from "@azure/msal-common"; /** * BrowserAuthErrorMessage class containing string constants used by error codes and messages. */ export declare const BrowserConfigurationAuthErrorMessage: { redirectUriNotSet: { code: string; desc: string; }; postLogoutUriNotSet: { code: string; desc: string; }; storageNotSupportedError: { code: string; desc: string; }; noRedirectCallbacksSet: { code: string; desc: string; }; invalidCallbackObject: { code: string; desc: string; }; }; /** * Browser library error class thrown by the MSAL.js library for SPAs */ export declare class BrowserConfigurationAuthError extends AuthError { constructor(errorCode: string, errorMessage?: string); /** * Creates an error thrown when the redirect uri is empty (not set by caller) */ static createRedirectUriEmptyError(): BrowserConfigurationAuthError; /** * Creates an error thrown when the post-logout redirect uri is empty (not set by caller) */ static createPostLogoutRedirectUriEmptyError(): BrowserConfigurationAuthError; /** * Creates error thrown when given storage location is not supported. * @param givenStorageLocation */ static createStorageNotSupportedError(givenStorageLocation: string): BrowserConfigurationAuthError; /** * Creates error thrown when callback object is invalid. * @param callbackObject */ static createInvalidCallbackObjectError(callbackObject: object): BrowserConfigurationAuthError; /** * Creates error thrown when redirect callbacks are not set before calling loginRedirect() or acquireTokenRedirect(). */ static createRedirectCallbacksNotSetError(): BrowserConfigurationAuthError; }