azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

MSAL.js logging config does not work

Open bachoang opened this issue 2 years ago • 3 comments

loggerCallback: (level: LogLevel, message: string, containsPii: boolean): void => {..

the above line is for typescript. Running this in javascript caused the syntax error:

authConfig.js:22 Uncaught SyntaxError: Unexpected token ':' (at authConfig.js:22:35) authPopup.js:3 Uncaught ReferenceError: msalConfig is not defined at authPopup.js:3:52

Per Jason Nutter.

(level: LogLevel, message: string, containsPii: boolean): void => {​​​​​​​

should be: (level, message, containsPii) => {​​​​​​​

<https://teams.microsoft.com/l/message/19:[email protected]/1665599479963?tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47&groupId=afafed2f-e0f0-406d-9ff0-9ffc71ca03f8&parentMessageId=1665599110352&teamName=Cloud Identity – DevEx - Supportability&channelName=Auth Libraries&createdTime=1665599479963&allowXTenantAccess=false>

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

bachoang avatar Oct 12 '22 18:10 bachoang

@bachoang Thanks for your feedback! We will investigate and update as appropriate.

Naveenommi-MSFT avatar Oct 13 '22 02:10 Naveenommi-MSFT

@mmacy Please review this issue

YashikaTyagii avatar Oct 13 '22 07:10 YashikaTyagii

#reassign: @OwenRichards1

henrymbuguakiarie avatar Oct 17 '22 13:10 henrymbuguakiarie