fedeya / next-auth-sanity

NextAuth Adapter and Provider for Sanity
https://sanity.io/plugins/next-auth-sanity
MIT License
78 stars 20 forks source link

createVerificationRequest is not a function #5

Closed paul-vd closed 3 years ago

paul-vd commented 3 years ago

Hi, after some debugging, it seems that the email sign-in "magic link" does not work because the createVerificationRequest seems to be missing in the adapter.

Adapter Example

Sanity Adapter: This Repo Future Sanity Adapter

paul-vd commented 3 years ago

@Fedeya I have a fork with this included.

I also found a little issue with the id not being set from _id on the account and user calls, here is the commit showing the diffs.

I can move this to a new branch and create a pull request if this will help.

I am under a time constraint so had to un-ignore the build folder so that I can npm install the package from my fork.