-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: add access to token used for magic-link generation #707
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed internally, we're gonna add {{ .HashedToken }}
{{ .TokenHash }}
in the go template and document how to use it in the email templates section in the UI
c111d8f
to
e12c0a1
Compare
e12c0a1
to
9c25298
Compare
hmm can you also add it to the |
🎉 This PR is included in version 2.30.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Is there documentation on how to use this feature on the client-side? |
@liaujianjie we haven't updated our docs yet but you can start using it to circumvent the problem where email clients preview the magiclink in the email. This can be done by adding a link in the email template which redirects a user to a page on your site that contains a button that they need to click to "confirm their email". (i.e. When the user clicks on that, they should be redirect to |
Just checked, actually the site url is already available if you do
Hmm yeah i'll add this to the email templates too so it can be easily referenced. For now, the only way to get it is through the {{ .ConfirmationURL }} which isn't great.. |
…e#707) Magic links often need to be customized. This PR allows folks to customize the link by providing access to the `HashedToken`. Co-authored-by: Kang Ming <kang.ming1996@gmail.com>
…e#707) Magic links often need to be customized. This PR allows folks to customize the link by providing access to the `HashedToken`. Co-authored-by: Kang Ming <kang.ming1996@gmail.com>
…e#707) Magic links often need to be customized. This PR allows folks to customize the link by providing access to the `HashedToken`. Co-authored-by: Kang Ming <kang.ming1996@gmail.com>
Magic links often need to be customized. This PR allows folks to customize the link by providing access to the
.HashedToken
EDIT: We changed this to use {{ .TokenHash }} instead. You can add this in your email templates in the Supabase dashboard under the email templating section