( email: string, redirectTo: string, )
| 455 | }; |
| 456 | |
| 457 | export const betterAuthForgetPassword = async ( |
| 458 | email: string, |
| 459 | redirectTo: string, |
| 460 | ): Promise<{ status?: boolean; error?: string }> => { |
| 461 | return betterAuthPost( |
| 462 | 'request-password-reset', |
| 463 | { email, redirectTo }, |
| 464 | 'Failed to send password reset email', |
| 465 | ); |
| 466 | }; |
| 467 | |
| 468 | export const betterAuthResetPassword = async ( |
| 469 | newPassword: string, |
no test coverage detected