[GH-ISSUE #1361] Improve Magic Link token readability and user-friendliness #17340

Closed
opened 2026-04-15 15:27:40 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @ftzi on GitHub (Feb 5, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1361

Is this suited for github?

  • Yes, this is suited for github

The magic link should be more user-friendly. The current one is like nmfkglpuknwhakjocthfwmioyoozdqus. It makes even me, a developer, quite afraid and suspicious.

Notion, for example, has zaere-seaj-jagon-runia.

https://discord.com/channels/1288403910284935179/1288403910284935182/1336709799345389589

Describe the solution you'd like

The generated token for the Magic Link could be improved so it's more friendly to the users

Describe alternatives you've considered

Keep as it is. Works, just not very pretty.

Additional context

No response

Originally created by @ftzi on GitHub (Feb 5, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1361 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. The magic link should be more user-friendly. The current one is like `nmfkglpuknwhakjocthfwmioyoozdqus`. It makes even me, a developer, quite afraid and suspicious. Notion, for example, has `zaere-seaj-jagon-runia`. https://discord.com/channels/1288403910284935179/1288403910284935182/1336709799345389589 ### Describe the solution you'd like The generated token for the Magic Link could be improved so it's more friendly to the users ### Describe alternatives you've considered Keep as it is. Works, just not very pretty. ### Additional context _No response_
GiteaMirror added the locked label 2026-04-15 15:27:40 -05:00
Author
Owner

@t3duk commented on GitHub (Feb 5, 2025):

this was attempted in #223 however the author has not responded to the requested changes, so i would like to implement this functionality to close this issue and #223

<!-- gh-comment-id:2637129603 --> @t3duk commented on GitHub (Feb 5, 2025): this was attempted in #223 however the author has not responded to the requested changes, so i would like to implement this functionality to close this issue and #223
Author
Owner

@t3duk commented on GitHub (Feb 5, 2025):

My implementation in #1362 does not offer the premade functions, such as the one used in Notion, however it allows you to customise how tokens are generated by creating your own function.

From what Notion looks like, generate a 20 character string with 3 dashes every 5 characters. This is easy to do with my implementation.

<!-- gh-comment-id:2637376351 --> @t3duk commented on GitHub (Feb 5, 2025): My implementation in #1362 does not offer the premade functions, such as the one used in Notion, however it allows you to customise how tokens are generated by creating your own function. From what Notion looks like, generate a 20 character string with 3 dashes every 5 characters. This is easy to do with my implementation.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#17340