fix: support creating credential account on forget password (#191)

This commit is contained in:
Bereket Engida
2024-10-16 12:49:44 +03:00
committed by GitHub
parent 351a3c883f
commit 86ea2def73
7 changed files with 115 additions and 112 deletions
+5
View File
@@ -65,6 +65,11 @@ List of all the available options for configuring Better Auth.
description: "Send reset password token to user's email.",
type: '(token: string, user: User) => Promise<void>',
},
resetPasswordTokenExpiresIn: {
description: "Expiration time for the reset password token. The value should be in seconds.",
type: 'number',
default: 60 * 60 * 1 // 1 hour
},
sendVerificationEmail: {
description: "Send verification email to user's email. It takes email and data that contains `url` and `token` props.",
type: `(email: string, data: Data) => Promise<void>`