mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 12:27:44 +00:00
fix: nextjs demo
This commit is contained in:
@@ -32,6 +32,7 @@ export default function Component() {
|
|||||||
try {
|
try {
|
||||||
const res = await client.forgetPassword({
|
const res = await client.forgetPassword({
|
||||||
email,
|
email,
|
||||||
|
redirectTo: "/reset-password",
|
||||||
});
|
});
|
||||||
// If the API call is successful, set isSubmitted to true
|
// If the API call is successful, set isSubmitted to true
|
||||||
setIsSubmitted(true);
|
setIsSubmitted(true);
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ export default async function Home() {
|
|||||||
"Passkeys",
|
"Passkeys",
|
||||||
"Multi Factor",
|
"Multi Factor",
|
||||||
"Password Reset",
|
"Password Reset",
|
||||||
|
"Email Verification",
|
||||||
"Roles & Permissions",
|
"Roles & Permissions",
|
||||||
"Rate Limiting",
|
"Rate Limiting",
|
||||||
"Session Management",
|
"Session Management",
|
||||||
|
|||||||
Reference in New Issue
Block a user