seeing trim undefined issue again for msal 1.4.1 post migration to webpack version 5.70 #4649
Unanswered
tickoosunny
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team ,
I am using msal version 1.4.1 in my current project and had a security need to update my webpack from webpack 4.31 to 5.70.
Post doing the upgrade i am seeing below issues
#4277
for my react msal library version 1.4.1 which is being used as a underlying dependency for "react-aad-msal": "2.3.5",
My configurations is as below:
`import { Logger, LogLevel } from "msal";
import { LoginType, MsalAuthProvider } from "react-aad-msal";
import "regenerator-runtime/runtime";
import initialState from "../redux/reducers/initialState";
const config = {
auth: {
authority: initialState.appConfig.AUTHORITY,
clientId: initialState.appConfig.CLIENT_ID,
redirectUri: initialState.appConfig.REDIRECT_URI,
postLogoutRedirectUri: initialState.appConfig.REDIRECT_URI,
},
system: {
logger: new Logger(
(logLevel, message, containsPii) => {
console.log("[MSAL]", message);
console.log("[MSAL]", containsPii);
},
{
level: LogLevel.Verbose,
piiLoggingEnabled: false,
},
),
},
};
const authParams = {
scopes: [initialState.appConfig.SCOPE],
};
const options = {
loginType: LoginType.Redirect,
};
export default new MsalAuthProvider(config, authParams, options);`
Any help is much appriciated,
Thanks in advance.
Susheel Tickoo
Beta Was this translation helpful? Give feedback.
All reactions