Magic lInk

I have never set this up before so I am a little bit confused about how to implement it. In the docs it says to have a server.ts and from my understanding this is just your regular auth.ts file you initially create when setting up better-auth?

Then we would have something like resend or nodemailer and a server action that actually gets your email address from the form itself and send out a link to login? Or am I over complicating it for myself.

Any help here would highly be appreciated
Was this page helpful?