New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authorization Code Flow for Single Page Applications: Adding Logger class #1155
Authorization Code Flow for Single Page Applications: Adding Logger class #1155
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One suggestion otherwise looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question otherwise looks good.
this.logMessage(message, { | ||
logLevel: LogLevel.Error, | ||
containsPii: false, | ||
correlationId: correlationId || "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is correlationId
used? And I would argue to have this fallback logic to empty string inside of logMessage
, so that you don't have to do it in each log level function.
…logger Authorization Code Flow for Single Page Applications: Adding Logger class
This PR adds a logger class to the Authorization Code Flow version of the MSAL library. It also removes instances of console.log from the common package.