Link magiclink user to email account
When calling auth.api.signInMagicLink a new user will be created, if no user is associated with the used email, but this does not create an account. Is there a way to link this with the email provider?
Running auth.api.SignUpEmail does not work, since the user already exists.
4 Replies
@admin any updates on this?
Hey you will need to make them go through a set-password flow.
Read more here:
https://www.better-auth.com/docs/concepts/users-accounts#set-password
User & Accounts | Better Auth
User and account management.
Ah that's perfect. Overlooked that one. Thanks!
No problem! 🫡