diff --git a/docs/components/sidebar-content.tsx b/docs/components/sidebar-content.tsx index e06d2d3ed4..5cdce835ce 100644 --- a/docs/components/sidebar-content.tsx +++ b/docs/components/sidebar-content.tsx @@ -456,18 +456,5 @@ export const contents: Content[] = [ href: "/docs/plugins/bearer", }, ], - }, - { - title: "Guides", - Icon: () => ( - - ), - list: [{ - title: "Setting up Login with Github", - href: "/docs/guides/github-login", - icon: () => ( - - ) - }] } ]; diff --git a/examples/next-js/src/app/(auth)/sign-in/page.tsx b/examples/next-js/src/app/(auth)/sign-in/page.tsx index c59d1ef452..6a7c862f6f 100644 --- a/examples/next-js/src/app/(auth)/sign-in/page.tsx +++ b/examples/next-js/src/app/(auth)/sign-in/page.tsx @@ -2,11 +2,7 @@ import { Button } from "@/components/ui/button"; import { - Card, - CardContent, - CardDescription, - CardHeader, - CardTitle, + Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; import { Checkbox } from "@/components/ui/checkbox"; import { Input } from "@/components/ui/input"; @@ -25,9 +21,9 @@ export default function Page() { const [password, setPassword] = useState(""); const [rememberMe, setRememberMe] = useState(false); const router = useRouter(); + return (
-
@@ -170,4 +166,4 @@ export default function Page() {
); -} +} \ No newline at end of file diff --git a/packages/better-auth/src/client/proxy.ts b/packages/better-auth/src/client/proxy.ts index 1a08cc4b7b..e8e3c64d91 100644 --- a/packages/better-auth/src/client/proxy.ts +++ b/packages/better-auth/src/client/proxy.ts @@ -86,8 +86,10 @@ export function createDynamicPathProxy>( if (!matches) return; const signal = atoms[matches.signal]; if (!signal) return; - //@ts-expect-error - signal.set(!signal.get()); + setTimeout(() => { + //@ts-expect-error + signal.set(!signal.get()); + }, 0); }, }); },