UNPKG

@azure/msal-browser

Version:
28 lines (25 loc) 927 B
/*! @azure/msal-browser v5.6.3 2026-04-01 */ 'use strict'; import { AuthError } from '@azure/msal-common/browser'; /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ function getDefaultErrorMessage(code) { return `See https://aka.ms/msal.js.errors#${code} for details`; } /** * Browser library error class thrown by the MSAL.js library for SPAs */ class BrowserAuthError extends AuthError { constructor(errorCode, subError) { super(errorCode, getDefaultErrorMessage(errorCode), subError); Object.setPrototypeOf(this, BrowserAuthError.prototype); this.name = "BrowserAuthError"; } } function createBrowserAuthError(errorCode, subError) { return new BrowserAuthError(errorCode, subError); } export { BrowserAuthError, createBrowserAuthError, getDefaultErrorMessage }; //# sourceMappingURL=BrowserAuthError.mjs.map