fix: demo two fa

This commit is contained in:
Bereket Engida
2024-09-27 23:58:05 +03:00
parent adc1b8ebe4
commit 970cd3b945
2 changed files with 9 additions and 16 deletions

View File

@@ -70,8 +70,13 @@ export const auth = betterAuth({
}),
twoFactor({
otpOptions: {
sendOTP(user, otp) {
console.log({ otp });
async sendOTP(user, otp) {
await resend.emails.send({
from,
to: user.email,
subject: "Your OTP",
html: `Your OTP is ${otp}`,
});
},
},
}),