emailAndPassword: {
enabled: true,
requireEmailVerification: true,
sendResetPassword: async ({ user, url }) => {
await sendEmail({
user,
url,
subject: "Reset your password",
buttonText: "Reset password",
path: "/auth/reset-password",
frontendURI,
resend,
emailFrom,
});
},
},
emailVerification: {
sendVerificationEmail: async ({ user, url }) => {
await sendEmail({
user,
url,
subject: "Verify your email address",
buttonText: "Verify Email",
path: "",
frontendURI,
resend,
emailFrom,
});
},
autoSignInAfterVerification: true,
sendOnSignUp: true,
}
emailAndPassword: {
enabled: true,
requireEmailVerification: true,
sendResetPassword: async ({ user, url }) => {
await sendEmail({
user,
url,
subject: "Reset your password",
buttonText: "Reset password",
path: "/auth/reset-password",
frontendURI,
resend,
emailFrom,
});
},
},
emailVerification: {
sendVerificationEmail: async ({ user, url }) => {
await sendEmail({
user,
url,
subject: "Verify your email address",
buttonText: "Verify Email",
path: "",
frontendURI,
resend,
emailFrom,
});
},
autoSignInAfterVerification: true,
sendOnSignUp: true,
}