Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
5.13.0
Wrapper Library
MSAL Angular (@azure/msal-angular)
Wrapper Library Version
5.2.7
Public or Confidential Client?
Public
Description
I am unable to use decode-logs.cjs to decode my hashed log messages, as described in this page:
https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/scripts/README.md
The script is unable to find the message mappings. I have tried running this in git bash and in powershell on Windows.
I put some more logging lines in the script - it is looking for the mapping files in the following path:
C:\Users\Alex.Harman\dist\log-strings-mapping.json
C:\Users\Alex.Harman\dist\custom-auth-path\log-strings-mapping.json
Error Message
$ node ~/Downloads/decode-logs.cjs --verbose ~/Downloads/console-export-2026-6-12_19-4-58.log
MSAL Browser Log Decoder
Step 1: Scanning log file...
✓ Found 28 log entries
✓ Detected 1 unique module@version combination(s): @azure/msal-browser@5.13.0
Step 2: Downloading mappings...
Downloading mappings for 1 unique module@version combination(s)
Loading mapping for @azure/msal-browser@5.13.0
Fetching mapping for @azure/msal-browser@5.13.0 from npm registry
Downloading tarball from https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-5.13.0.tgz
browser
- Not found: dist/log-strings-mapping.json
- Not found: dist/custom-auth-path/log-strings-mapping.json
Failed to fetch remote mapping: No mapping files found in package
⚠ Warning: Could not load mapping for @azure/msal-browser@5.13.0
Step 3: Decoding log entries...
✓ Successfully decoded logs
Output saved to: C:\Users\Alex.Harman\Downloads\console-export-2026-6-12_19-4-58-decoded.log
Decoding Statistics:
Total MSAL entries: 28
Successfully decoded: 0
Hashes not found: 28
Non-MSAL lines: 25
MSAL Logs
18:56:16.952 [Fri, 12 Jun 2026 17:56:16 GMT] : [] : @azure/msal-angular@5.2.7 : Verbose - MsalRedirectComponent activated main.js:4083:47
18:56:16.953 [Fri, 12 Jun 2026 17:56:16 GMT] : [019ebcfa-3db9-7592-91c2-94d0018e33ae] : @azure/msal-browser@5.13.0 : Trace - 1f7joy main.js:4083:47
18:56:16.953 [Fri, 12 Jun 2026 17:56:16 GMT] : [019ebcfa-3db9-7592-91c2-94d0018e33ae] : @azure/msal-browser@5.13.0 : Trace - 1plfzx 2 main.js:4083:47
18:56:16.953 [Fri, 12 Jun 2026 17:56:16 GMT] : [019ebcfa-3db9-7592-91c2-94d0018e33ae] : @azure/msal-browser@5.13.0 : Trace - 1g8n6a main.js:4083:47
18:56:16.954 [Fri, 12 Jun 2026 17:56:16 GMT] : [019ebcfa-3db9-7592-91c2-94d0018e33ae] : @azure/msal-browser@5.13.0 : Trace - 1plfzx main.js:4083:47
18:56:16.964 [Fri, 12 Jun 2026 17:56:16 GMT] : [019ebcfa-3db9-7592-91c2-94d0018e33ae] : @azure/msal-browser@5.13.0 : Trace - 1g8n6a main.js:4083:47
18:56:16.964 [Fri, 12 Jun 2026 17:56:16 GMT] : [019ebcfa-3db9-7592-91c2-94d0018e33ae] : @azure/msal-browser@5.13.0 : Trace - 1plfzx main.js:4083:47
18:56:16.965 [Fri, 12 Jun 2026 17:56:16 GMT] : [019ebcfa-3db9-7592-91c2-94d0018e33ae] : @azure/msal-browser@5.13.0 : Trace - 1g8n6a main.js:4083:47
18:56:16.966 [Fri, 12 Jun 2026 17:56:16 GMT] : [019ebcfa-3db9-7592-91c2-94d0018e33ae] : @azure/msal-browser@5.13.0 : Info - 1wuc87 main.js:4083:47
18:56:16.967 [Fri, 12 Jun 2026 17:56:16 GMT] : [019ebcfa-3db9-7592-91c2-94d0018e33ae] : @azure/msal-browser@5.13.0 : Trace - 1g8n6a main.js:4083:47
18:56:16.967 [Fri, 12 Jun 2026 17:56:16 GMT] : [] : @azure/msal-browser@5.13.0 : Verbose - 02l8bm main.js:4083:47
18:56:16.967 [Fri, 12 Jun 2026 17:56:16 GMT] : [] : @azure/msal-browser@5.13.0 : Trace - 1ordf8 main.js:4083:47
18:56:16.967 [Fri, 12 Jun 2026 17:56:16 GMT] : [] : @azure/msal-browser@5.13.0 : Info - 0le6uv main.js:4083:47
18:56:16.968 [Fri, 12 Jun 2026 17:56:16 GMT] : [] : @azure/msal-browser@5.13.0 : Verbose - 1wn9kp main.js:4083:47
18:56:16.968 [Fri, 12 Jun 2026 17:56:16 GMT] : [] : @azure/msal-browser@5.13.0 : Verbose - 1cnec4 main.js:4083:47
18:57:47.785 [Fri, 12 Jun 2026 17:57:47 GMT] : [] : @azure/msal-angular@5.2.7 : Verbose - MsalRedirectComponent activated main.js:4083:47
18:57:47.785 [Fri, 12 Jun 2026 17:57:47 GMT] : [019ebcfb-a089-71ef-bf55-4b2feb48754e] : @azure/msal-browser@5.13.0 : Trace - 1f7joy main.js:4083:47
18:57:47.785 [Fri, 12 Jun 2026 17:57:47 GMT] : [019ebcfb-a089-71ef-bf55-4b2feb48754e] : @azure/msal-browser@5.13.0 : Trace - 1plfzx 2 main.js:4083:47
18:57:47.786 [Fri, 12 Jun 2026 17:57:47 GMT] : [019ebcfb-a089-71ef-bf55-4b2feb48754e] : @azure/msal-browser@5.13.0 : Trace - 1g8n6a main.js:4083:47
18:57:47.786 [Fri, 12 Jun 2026 17:57:47 GMT] : [019ebcfb-a089-71ef-bf55-4b2feb48754e] : @azure/msal-browser@5.13.0 : Trace - 1plfzx main.js:4083:47
18:57:47.798 [Fri, 12 Jun 2026 17:57:47 GMT] : [019ebcfb-a089-71ef-bf55-4b2feb48754e] : @azure/msal-browser@5.13.0 : Trace - 1g8n6a main.js:4083:47
18:57:47.798 [Fri, 12 Jun 2026 17:57:47 GMT] : [019ebcfb-a089-71ef-bf55-4b2feb48754e] : @azure/msal-browser@5.13.0 : Trace - 1plfzx main.js:4083:47
18:57:47.799 [Fri, 12 Jun 2026 17:57:47 GMT] : [019ebcfb-a089-71ef-bf55-4b2feb48754e] : @azure/msal-browser@5.13.0 : Trace - 1g8n6a main.js:4083:47
18:57:47.800 [Fri, 12 Jun 2026 17:57:47 GMT] : [019ebcfb-a089-71ef-bf55-4b2feb48754e] : @azure/msal-browser@5.13.0 : Info - 1wuc87 main.js:4083:47
18:57:47.800 [Fri, 12 Jun 2026 17:57:47 GMT] : [019ebcfb-a089-71ef-bf55-4b2feb48754e] : @azure/msal-browser@5.13.0 : Trace - 1g8n6a main.js:4083:47
18:57:47.800 [Fri, 12 Jun 2026 17:57:47 GMT] : [] : @azure/msal-browser@5.13.0 : Verbose - 02l8bm main.js:4083:47
18:57:47.800 [Fri, 12 Jun 2026 17:57:47 GMT] : [] : @azure/msal-browser@5.13.0 : Trace - 1ordf8 main.js:4083:47
18:57:47.801 [Fri, 12 Jun 2026 17:57:47 GMT] : [] : @azure/msal-browser@5.13.0 : Info - 0le6uv main.js:4083:47
18:57:47.801 [Fri, 12 Jun 2026 17:57:47 GMT] : [] : @azure/msal-browser@5.13.0 : Verbose - 1wn9kp main.js:4083:47
18:57:47.801 [Fri, 12 Jun 2026 17:57:47 GMT] : [] : @azure/msal-browser@5.13.0 : Verbose - 1cnec4 main.js:4083:47
Network Trace (Preferrably Fiddler)
MSAL Configuration
/**
* Configuration object to be passed to MSAL instance on creation.
* For a full list of MSAL.js configuration parameters, visit:
* https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/configuration.md
*/
export const msalConfig: Configuration = {
auth: {
clientId: environment.entra.clientId, // This is the ONLY mandatory field that you need to supply.
authority: `https://${environment.entra.subdomain}.ciamlogin.com/`, // Replace the placeholder with your tenant subdomain
redirectUri: environment.entra.redirectUri, // Points to window.location.origin by default. You must register this URI on Azure portal/App Registration.
postLogoutRedirectUri: environment.entra.postLogoutRedirectUri, // Points to window.location.origin by default.
},
cache: {
cacheLocation: BrowserCacheLocation.LocalStorage, // Configures cache location. "sessionStorage" is more secure, but "localStorage" gives you SSO between tabs.
},
system: {
loggerOptions: {
loggerCallback: (_, message: string) => console.log(message),
logLevel: LogLevel.Trace,
piiLoggingEnabled: true,
},
},
};
Relevant Code Snippets
Reproduction Steps
- Download the decode-logs.cjs script
- Run the script, passing the above logs as an argument
Expected Behavior
The logs should be decoded
Identity Provider
Entra ID (formerly Azure AD) / MSA
Browsers Affected (Select all that apply)
Firefox
Regression
No response
Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
5.13.0
Wrapper Library
MSAL Angular (@azure/msal-angular)
Wrapper Library Version
5.2.7
Public or Confidential Client?
Public
Description
I am unable to use decode-logs.cjs to decode my hashed log messages, as described in this page:
https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/scripts/README.md
The script is unable to find the message mappings. I have tried running this in git bash and in powershell on Windows.
I put some more logging lines in the script - it is looking for the mapping files in the following path:
C:\Users\Alex.Harman\dist\log-strings-mapping.json
C:\Users\Alex.Harman\dist\custom-auth-path\log-strings-mapping.json
Error Message
MSAL Logs
Network Trace (Preferrably Fiddler)
MSAL Configuration
Relevant Code Snippets
Reproduction Steps
Expected Behavior
The logs should be decoded
Identity Provider
Entra ID (formerly Azure AD) / MSA
Browsers Affected (Select all that apply)
Firefox
Regression
No response