diff --git a/examples/full-example/src/components/Buttons.tsx b/examples/full-example/src/components/Buttons.tsx index 24e8344..04c570d 100644 --- a/examples/full-example/src/components/Buttons.tsx +++ b/examples/full-example/src/components/Buttons.tsx @@ -1,10 +1,19 @@ 'use client'; import { signIn, signOut } from 'next-auth/react'; +import { useRouter } from 'next/navigation'; export const SignInButton = () => { return ; }; export const SignOutButton = () => { - return ; + const router = useRouter(); + + const handleClick = async () => { + await signOut({ redirect: false }); + + router.refresh(); + }; + + return ; };