-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Move auth error messages out of the bundle #7744
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
base: msal-v5
Are you sure you want to change the base?
Conversation
konstantin-msft
commented
May 12, 2025
- Move auth error messages out of the bundle
"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details.", | ||
}; | ||
export function getDefaultErrorMessage(code: string): string { | ||
return `See https://aka.ms/msaljs/common/errors#${code} for details`; |
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.
This is fine for now but I think eventually it would be good to just have a single source of truth for all Errors
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.
I'd also like to see some sort of CI validation that a message actually exists in the doc for all error codes. I'm happy to treat that as its own separate work item, however, just calling it out as a requirement to call this work complete.