Skip to content

Log messages are gibberish #8418

@vvolodin

Description

@vvolodin

Core Library

MSAL.js (@azure/msal-browser)

Core Library Version

5.3.0

Wrapper Library

MSAL Angular (@azure/msal-angular)

Wrapper Library Version

none

Public or Confidential Client?

Public

Description

Log messages are minified in the output source code, example from EventHandler.mjs:

this.logger.verbose("1cnec4", "");

How do I decode these?

Error Message

No response

MSAL Logs

No response

Network Trace (Preferrably Fiddler)

  • Sent
  • Pending

MSAL Configuration

const msalConfig = {
    auth: {
        clientId: serverVars.clientId,
        authority: 'https://login.microsoftonline.com/common',
        redirectUri: serverVars.redirectUri,
        clientCapabilities: ['CP1'] // This lets the resource server know that this client can handle claim challenges.
    },
    cache: {
        cacheLocation: 'localStorage',
        storeAuthStateInCookie: false
    }
}

Relevant Code Snippets

export function loggerCallback(level: LogLevel, message: string, containsPii: boolean) {
    console.log(message);
}

Reproduction Steps

  1. Use msal-browser
  2. Enable logging
  3. Get minified messages

Expected Behavior

  1. Use msal-browser
  2. Enable logging
  3. Be able to read and understand log messages

Identity Provider

Entra ID (formerly Azure AD) / MSA

Browsers Affected (Select all that apply)

Chrome

Regression

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-unconfirmedA reported bug that needs to be investigated and confirmedmsal-angularRelated to @azure/msal-angular packagemsal-browserRelated to msal-browser packagepublic-clientIssues regarding PublicClientApplicationsquestionCustomer is asking for a clarification, use case or information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions