Skip to content

Any way to make magic link functional? #38

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

Closed
pwnllc opened this issue Jun 22, 2024 · 5 comments
Closed

Any way to make magic link functional? #38

pwnllc opened this issue Jun 22, 2024 · 5 comments

Comments

@pwnllc
Copy link

pwnllc commented Jun 22, 2024

Hello,
Are there any ways to make the "Sign in with magic link" function work?
I know there's been an issue already opened by someone in April, but just wanted to see if there were any updates regarding it.
Thanks!

@mickasmt
Copy link
Owner

Hi @pwnllc I am currently working on the "Sign in with magic link" functionality this week. I was able to test it this weekend and had to change the middleware for it to work properly (more infos : nextauthjs/next-auth#10632 (comment) | https://authjs.dev/guides/edge-compatibility#the-solution). I will continue testing before pushing the code online.

In parallel, I am also adding role management for users (admin/user). These improvements should be available next week.

@pwnllc
Copy link
Author

pwnllc commented Jun 24, 2024

Awesome, thanks!

@pwnllc pwnllc closed this as completed Jun 24, 2024
@mickasmt
Copy link
Owner

@pwnllc User roles, admin panel & magic-link are online! The magic link works, but you can test it only locally. Enjoy!

@logiserv
Copy link

How to deploy in vercel Middleware without thie error Dynamic Code Evaluation (e. g. 'eval', 'new Function', 'WebAssembly.compile') not allowed in Edge Runtime when sendVerificationRequest, is uncommented in auth.config.ts ?

@mathiasfc
Copy link

mathiasfc commented Apr 19, 2025

@logiserv it should work: #55, if not, take a look here: resend/react-email#1105 (comment)

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

4 participants