When using NextJS, choose "Web" in App registration/Platform configuration Microsoft Entra ID Admin center #12400
Labels
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
What is the improvement or update you wish to see?
In the Microsoft Entra ID for Next JS documentation, it should specify to choose "Web" in the "App registration/Platform configurations" section (not "SPA", which most would likely choose for a Next app). The token sent is different for Web vs SPA and if SPA is chosen, you will get an error:
"JWTInvalid: JWTs must use Compact JWS serialization, JWT must be a string"
Is there any context that might help us understand?
I was getting the same error as the issue below, which helped me resolve the issue.
#12187
Does the docs page already exist? Please link to it.
https://authjs.dev/getting-started/providers/microsoft-entra-id
The text was updated successfully, but these errors were encountered: