Does next-auth-sanity work with NextAuth v4? #3546
Unanswered
AeroFiTech
asked this question in
Help
Replies: 1 comment 4 replies
-
We did try to move it into the official adapters once, but due to inactivity, it never made it. |
Beta Was this translation helpful? Give feedback.
4 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 guys,
First of all, wishing you a Happy new year!
I am trying to use the next-auth adapter provided by Sanity @ https://www.sanity.io/plugins/next-auth-sanity in my NextJS project but seems like I am having issues when I added in the EmailProvider paired with the Sanity.io adapter.
This is my [...nextauth.js] located in pages/api/auth dir and yes I added NEXTAUTH_URL=http://localhost:3000 and the EMAIL_SERVER_PARAMS_ in the .env.local file:
This is the client.js sanity config file located at the project root (/parking-sanity):
import sanityClient from "@sanity/client";
This is the package.json of the project:
These are the errors I have in return:
Beta Was this translation helpful? Give feedback.
All reactions