Right now, I am using a MsalProvider to authenticate a user based on the Microsoft account they are signed in with. And three things happen when a component mounts:
- The app obtains a token from MSAL using @azure/msal-react
- Use this token to call an internal API
- The data from this API is then rendered on the user's browser
Since I'm dependant on a users Microsoft account credentials, everything has to render on the client side? Or is there a way I can make use of getServerSideProps(...) here so that it can SSR?