otp email not being sent
@Better Auth has the emailOTP plugin stopped working?
i have the following code:
and when (on signup) i write:
the email otp is not being sent, what am i missing?
i have the following code:
plugins: [
tanstackStartCookies(),
admin(),
emailOTP({
overrideDefaultEmailVerification: true,
sendVerificationOnSignUp: true,
async sendVerificationOTP({ email, otp, type }) {
console.log('HEEEERE ----------------------------->');
console.log('type:', type, otp);
// if (type === 'email-verification') {
// await send_activation_code_email({ data: { email, otp } });
// }
},
}),
], plugins: [
tanstackStartCookies(),
admin(),
emailOTP({
overrideDefaultEmailVerification: true,
sendVerificationOnSignUp: true,
async sendVerificationOTP({ email, otp, type }) {
console.log('HEEEERE ----------------------------->');
console.log('type:', type, otp);
// if (type === 'email-verification') {
// await send_activation_code_email({ data: { email, otp } });
// }
},
}),
],and when (on signup) i write:
await signUp.email({
email: evt.email,
name: evt.name,
password: evt.password,
fetchOptions: {
onError() {
toast.error('Error try again later');
},
onSuccess(ctx) {
console.log('ctx:', ctx);
navigate({ to: '/verify-account' });
},
},
}); await signUp.email({
email: evt.email,
name: evt.name,
password: evt.password,
fetchOptions: {
onError() {
toast.error('Error try again later');
},
onSuccess(ctx) {
console.log('ctx:', ctx);
navigate({ to: '/verify-account' });
},
},
});the email otp is not being sent, what am i missing?