Replies: 2 comments 6 replies
-
could you try returning a static string (eg "quot-test" as the value of id in the profile callback? the tokens are already available in the jwt callback, you don't have to pass them in the profile callback anyway. https://next-auth.js.org/configuration/callbacks#jwt-callback |
Beta Was this translation helpful? Give feedback.
3 replies
-
Just from a quick glance, I see that the signature of your callbacks do not deconstruct the params. What I mean is that instead of jwt(token, user, account, profile, isNewUser) you should have jwt({ token, user, account, profile, isNewUser }) |
Beta Was this translation helpful? Give feedback.
3 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.
-
Question 💬
I am trying to connect Next-Auth to a custom implementation of OAuth 2.0. The app successfully takes to the sign-in page, upon sign-in, takes back to the home page, however, I get
session = null
.I noticed that through the sign-in process, it hits an endpoint:
GET http://localhost:3000/api/auth/session
The request-cookies tab contains the
csrf-token
andjsessionid
. However, it returns with json empty object{}
& status code of `304 : not modified'.My config:
None of the console.logs get triggered and my terminal and browser console show none of the print logs.
I am using Node 12.x.
What am I doing wrong?
Contributing 🙌🏽
No, I am afraid I cannot help regarding this
Beta Was this translation helpful? Give feedback.
All reactions