Loops
Use Loops to send the Magic Link email
Configure Auth to use Loops for Magic Link
Create a Transactional in Loops


Last updated
Use Loops to send the Magic Link email


Last updated
import { emailFrom } from "@/config";
import { sendTransactionalEmail } from "@/libs/loops"
/* ... */
providers: [
EmailProvider({
async sendVerificationRequest({ identifier: email, url }) {
await sendTransactionalEmail({
transactionalId: "", // the transactional id you created on Loops
email,
dataVariables: {
url, // change it to the variable you set in the Loops transactional
},
});
},
}),
],