From c68bb8a3471cacb2e8ac0c8c2580ed6a194415d0 Mon Sep 17 00:00:00 2001 From: Bereket Engida Date: Mon, 14 Oct 2024 15:15:52 +0300 Subject: [PATCH] demo: fix types --- demo/nextjs/app/dashboard/user-card.tsx | 4 ++-- demo/nextjs/lib/auth.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/demo/nextjs/app/dashboard/user-card.tsx b/demo/nextjs/app/dashboard/user-card.tsx index 2e2d7d9c..a61aa8e9 100644 --- a/demo/nextjs/app/dashboard/user-card.tsx +++ b/demo/nextjs/app/dashboard/user-card.tsx @@ -350,8 +350,8 @@ export default function UserCard(props: { setIsSignOut(true); await signOut({ fetchOptions: { - body: { - callbackURL: "/", + onSuccess() { + router.push("/"); }, }, }); diff --git a/demo/nextjs/lib/auth.ts b/demo/nextjs/lib/auth.ts index 5c8bfdb6..b9754a59 100644 --- a/demo/nextjs/lib/auth.ts +++ b/demo/nextjs/lib/auth.ts @@ -3,7 +3,6 @@ import { bearer, organization, passkey, - phoneNumber, twoFactor, admin, } from "better-auth/plugins";