fix: use secure option should allow false

This commit is contained in:
Bereket Engida
2024-10-03 10:18:43 +03:00
parent 7ce38cbee5
commit e0c8fe54ea
4 changed files with 5 additions and 5 deletions

View File

@@ -28,13 +28,11 @@ export default function Component() {
setIsSubmitting(true);
setError("");
// Simulate API call
try {
const res = await client.forgetPassword({
email,
redirectTo: "/reset-password",
});
// If the API call is successful, set isSubmitted to true
setIsSubmitted(true);
} catch (err) {
setError("An error occurred. Please try again.");