Hi,
I am trying to make a Microsoft Graph api call using a SPA React JS application. Do I need to be logged in to make an api call like say /users/{id} ? I used the msal sdk and it feels it requires an accesstoken to make api calls.
I am trying to achieve a scenario where I try to login and check if the username exists, if it does I capture the password and update it. Else I create a new user. This is similar to Seamless Account Migration setup.
I want the user to click on login
He enters his username and password. ( This is him logging in first time after migration)
If his migration status is false, I capture the password and save it, and set mig status as true.
then he gets logged in
So for this, I need to make an MS Graph API Call before the user is logged in. So for that I am facing issues.
Please help