BA
Better Auth•5mo ago
Nick

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
Nick
NickOP•5mo ago
@admin any updates on this?
Ping
Ping•5mo ago
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.
Nick
NickOP•5mo ago
Ah that's perfect. Overlooked that one. Thanks!
Ping
Ping•5mo ago
No problem! 🫡

Did you find this page helpful?