Skip to content

AzureADB2C - ADSTS900144: The request body must contain the following parameter: 'code' #1623

Answered by jmuffat
jmuffat asked this question in Help
Discussion options

You must be logged in to vote

This error message wasn't the relevant one, it only was a consequence of authentication failing because of a different issue.

My app wasn't properly set up with Azure and Microsoft sent an error message back to our callback endpoint. I only noticed this by looking at Chrome's network debug. I have no idea where we can catch this error message in NextAuth, if somebody knows how, I wouldn't mind catching and logging these.

PS: for the curious, my actual problem was that I did not set the "audience" properly to use the 'common' endpoints. In the manifest, I had "signInAudience": "PersonalMicrosoftAccount",when I should have had "signInAudience": "AzureADandPersonalMicrosoftAccount",

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@balazsorban44
Comment options

Answer selected by jmuffat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants