Cognito provider - "id_token not present in TokenSet" #4885
Unanswered
davemackintosh
asked this question in
Help
Replies: 1 comment 2 replies
-
Cognito is an OIDC provider, try adding the
|
Beta Was this translation helpful? Give feedback.
2 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.
-
Hi all,
After some fiddling around I've gotten next-auth to work quite nicely. All except for when I successfully sign in, I always get the error
id_token not present in TokenSet
Scopes are set up according to docs and other discussions I've found on here and Google. I've verified all the config parameters and tried a few variations of config. It seems to me that this error occurs in the next-auth callback for this provider.
If I try to go to a protected page, I can see I am in fact logged in and it all works (I can also see in the debug logs the appropriate data from the
[next-auth][debug][OAUTH_CALLBACK_RESPONSE]
) but the action of logging in doesn't seem to work.I've added some logging to trace through the source a bit but couldn't find anything useful to go from. Am I doing something wrong or should I post an issue?
Here's the error
My
[...nextauth].ts
has this in itMany thanks for your hard work and time! 🙏
Beta Was this translation helpful? Give feedback.
All reactions