// Add here scopes for id token to be used at MS Identity Platform endpoints.
const loginRequest = {
scopes: ["User.Read"]
};
In the above you might have added something called Prompt: “consent” (as indicated below). Remove this line. Only scopes: ["User.Read"] is required. This should solve the issue.
// Add here scopes for id token to be used at MS Identity Platform endpoints.
const loginRequest = {
scopes: ["User.Read"]
prompt: “consent”