Is there a way to configure msal-angular to store its accessToken configs in cookies rather than storing in localStorage/sessionStorage.
I'm having security concerns about storing the token in localStorage/sessionStorage.
Such issue is also reported on Github (check here)
I have also set the storeAuthStateInCookie
to true
, but this also doesn't restrict saving the accessToken in the localStorage.
After doing research I found out that it's a limitation in the MSAL Library. My question is that has anyone deliberately implemented this feature?
Library versions used:
- @azure/msal-angular: 1.0.0-beta.4
- msal: 1.2.1