Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using NextJS, choose "Web" in App registration/Platform configuration Microsoft Entra ID Admin center #12400

Open
jonaddams opened this issue Dec 18, 2024 · 2 comments
Labels
triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

Comments

@jonaddams
Copy link

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

@jonaddams jonaddams added the triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime. label Dec 18, 2024
@jonaddams
Copy link
Author

image

@akegvd
Copy link

akegvd commented Dec 26, 2024

same

I got same error
here is what the error is

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Projects
None yet
Development

No branches or pull requests

2 participants