id_token not present from OAuth2 provider #12541
Unanswered
timmermike
asked this question in
Help
Replies: 1 comment
-
I managed to work around the issue by overriding
It's not exactly ideal because it throws away the checks that are built into the client. So if there's a better option, I'd appreciate the pointer. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I've been experimenting with NextAuth over the last couple days, trying to set up an integration with an existing service.
My provider config is as follows:
The provider does not support openid, only oauth2.0. I get as far as the token exchange, however, the token coming back from the provider has the following fields:
Which yields: error:
Error [OAuthCallbackError]: id_token not present in TokenSet
from NextAuth.Is there anything I can do to make NextAuth work without the id_token field in the token response? I suspect I've missed something basic in the configuration. I tried setting idToken to false, but that didn't seem to do anything. As far as I can tell, the openid-client module that nextauth is using under the hood requires the field and there doesn't seem to be any way to make it skip the field value.
(This is with next-auth@4.24.11)
Beta Was this translation helpful? Give feedback.
All reactions