[GH-ISSUE #733] Add name field to magic link #25722

Closed
opened 2026-04-17 15:59:36 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @shansmith01 on GitHub (Dec 3, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/733

Love your work team.

I would like to have the option to add a name to the magic link sign in/sign up

Describe alternatives you've considered
I considered having a second step after the user verifies their email address to add their name but I dislike the flow

Expect it to look like this
const { error } = await authClient.signIn.magicLink({ name, email, callbackURL: "/dashboard", });

Originally created by @shansmith01 on GitHub (Dec 3, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/733 Love your work team. I would like to have the option to add a name to the magic link sign in/sign up **Describe alternatives you've considered** I considered having a second step after the user verifies their email address to add their name but I dislike the flow Expect it to look like this `const { error } = await authClient.signIn.magicLink({ name, email, callbackURL: "/dashboard", });`
GiteaMirror added the locked label 2026-04-17 15:59:36 -05:00
Author
Owner

@codepeach commented on GitHub (Jan 16, 2025):

The following can now be implemented now, however, the name does not get populated in the 'user' table upon sign up.

      const { data, error } = await authClient.signIn.magicLink({
      email: email,
      name: name,
      callbackURL: "/", //redirect after successful login (optional)
    });
<!-- gh-comment-id:2595239691 --> @codepeach commented on GitHub (Jan 16, 2025): The following can now be implemented now, however, the name does not get populated in the 'user' table upon sign up. ``` const { data, error } = await authClient.signIn.magicLink({ email: email, name: name, callbackURL: "/", //redirect after successful login (optional) }); ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#25722