csrfMissing when using next-auth on client-side. #12885
Unanswered
adnanalbeda
asked this question in
Help
Replies: 1 comment
-
Check your NEXTAUTH_URL in the .env file, it should match your current urls. |
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.
-
I have two project, one is NextJS with next-auth set up and everything. It works fine and no issues here.
And I have another client project running Vite/React. I installed next-auth to use its session provider and apis to avoid writing my own.
Now when I use its
signIn
function, I'm hit with the following error:My Payload Data:

Vite React Code:

Am I doing something wrong?
(Speaking of which, could you possibly make a separate package for react client consumption only?)
Beta Was this translation helpful? Give feedback.
All reactions