AADB2C90077: User does not have an existing sessio

2019-04-10 19:38发布

问题:

I have an Angular app that uses MSAL.js and when I try to get an access token I'm receiving the following error:

AADB2C90077: User does not have an existing session and request prompt parameter has a value of 'None'.

回答1:

I was passing the wrong scope value; I had a typo in my tenant name:

this.userAgentApplication.acquireTokenSilent('https://{tenantname_with_typo}.onmicrosoft.com/webapi/read')