Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Auth.js version 5 #68

Open
Adstokoe19 opened this issue Jan 15, 2024 · 5 comments
Open

Upgrade to Auth.js version 5 #68

Adstokoe19 opened this issue Jan 15, 2024 · 5 comments

Comments

@Adstokoe19
Copy link

Adstokoe19 commented Jan 15, 2024

As you're probably aware, NextAuth.js is becoming Auth.js. Version 5 of Auth.js is a complete rewrite of the codebase and will introduce breaking changes, please refer to: https://authjs.dev/guides/upgrade-to-v5

V5 is currently in beta. It would be great to prepare your plugin in order to support this new version? Also, your plugin is earmarked as V2 (deprecated) in Sanity.io https://www.sanity.io/plugins/next-auth-sanity. I know it works fine with V3!

@Adstokoe19 Adstokoe19 changed the title Upgrade to Auth js version 5 Upgrade to Auth.js version 5 Jan 15, 2024
@KennedyNvsf
Copy link

Is there any news regarding the plugin upgrade to V5?

@KennedyNvsf
Copy link

KennedyNvsf commented Mar 7, 2024

I built my own sanity adapter to use with Nextauth V5.
You may look into it if you want and give it a star if you find it helpful
Repo

@Adstokoe19
Copy link
Author

I built my own sanity adapter to use with Nextauth V5. You may look into it if you want and give it a star if you find it helpful Repo

This is great! Have you considered publishing this to Sanity?
Share your plugin

@KennedyNvsf
Copy link

To be honest i did not think about it but perhaps i might.
I'd have to look into building a plugin/package and also maintaining it of course.
If i do so, I will give you an update regarding it.

@KennedyNvsf
Copy link

KennedyNvsf commented Mar 7, 2024

Also, quick note:
If you try the Authy Demo and create an account, you will not be able to confirm it because I am using the base Tier of Resend's package for email confirmation and it would only redirect confirmation emails to my own account.
But if you clone the project and add your env variables after setting up resend, you should be able to do so.
**In production you'd have to add a domain into your resend's configuration to able to send emails to different accounts **

that is if you want to include email confirmation/validartion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants