Send Auth.js magic link emails with Loops.
More control over design
Better visibility of sent emails
>
button to reveal all the sending options.)
Then you can create your email in the editor. We recommend creating a stylish but basic email for magic links, to help with deliverability. Use the style panel to customize the design.
To add the Auth.js magic link in your email, add a data variable named url
. When the email is sent, each user’s magic link will be inserted wherever you add the variable.
You can add data variables as URLs to text, buttons and images. In this example, we’re adding the url
data variable into the button’s link field.
url
, which is the variable name Auth.js uses when sending authentication emails.Environment variables
.env
file:Use the Loops provider