Search code examples
reactjsgoogle-chromeazure-ad-msalteams-toolkitmsal-react

msal-broswer doesn't save auth token inside local session with new chrome version


i've a teams react app, but from last chrome update, with msal i'm not able to save token authentication inside local session. That's my configuration.

  • msal-broswer: 2.38.1
  • chrome version: 117
  • msal-configuration: `
{
    auth: {
        clientId: config.clientId,
        authority: Config.authority,
        redirectUri: config.redirectUri
    },
    cache: {
        cacheLocation: "localStorage",
        storeAuthStateInCookie: true,
    }
}

I tried to downgrade chrome version and everthings works fine


Solution

  • I solved it by taking inspiration from this link , I disable "Experimental third-party storage partitioning" from the experimental flag.