React on Azure static web app token does not persist on refresh #7261
Labels
b2c
Related to Azure B2C library-specific issues
bug-unconfirmed
A reported bug that needs to be investigated and confirmed
msal-node
Related to msal-node package
msal-react
Related to @azure/msal-react
Needs: Attention 👋
Awaiting response from the MSAL.js team
public-client
Issues regarding PublicClientApplications
question
Customer is asking for a clarification, use case or information.
Core Library
MSAL Node (@azure/msal-node)
Core Library Version
3.1.0
Wrapper Library
MSAL React (@azure/msal-react)
Wrapper Library Version
2.0.3
Public or Confidential Client?
Public
Description
I deploy a react application to an Azure static web app.
If I run my app locally (redirectUri etc to "/"), the token is reused correctly when I refresh the page.
If I deploy my app as a astatic web app and I refresh the page, my token returns "undefined" When moving between pages the token keeps working, it's just gone as soon as I refresh.
Error Message
No response
MSAL Logs
Network Trace (Preferrably Fiddler)
MSAL Configuration
Relevant Code Snippets
The text was updated successfully, but these errors were encountered: