-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Entra ID provider causes JWTInvalid: JWTs must use Compact JWS serialization, JWT must be a string error #12187
Comments
Hi @ay13 ! Assuming that you're trying to use a Microsoft 365 business plan for this, please try to verify that your issuer variable is set to Hopefully that helps. |
Thanks for the reply @diego-gt , I verified that my issuer is set up the correct way. Same issue. |
Disregard this issue, it was my mistake. In the redirect section of Entra ID I set my redirect as a Single-page app, when I set it as a web app it worked correctly. |
Hi @ay13 Thanks! |
@warrantor For me, setting the platform to |
Glad you got it working! |
I'd like to confirm that this fixed the issue for me as well. |
great . it works , |
@yangyao1234 @ay13 @brandonavant Are you guys on next auth v5 or v4? Im using nextjs but I am having issues with this as well, even when set up as a web app |
@warrantor @diego-gt This is the error that I am getting on the callback: |
@sicarius97 , I am using v5 but will be moving down to v4 as v5 is still beta. For v5, the fix was setting the platform to |
Provider type
This is using Entra ID provider. Entra wasnt an option in the drop down so I chose AD
Azure Active Directory
Environment
Reproduction URL
https://github.com/ay13/auth-entra
Describe the issue
After the initial auth process it redirects back to the app and displays the message:
in the console I see the error:
How to reproduce
npx sv create
Expected behavior
I expected to authenticate without an error
The text was updated successfully, but these errors were encountered: