'use client'; import { useState } from 'react'; import { signOut } from 'next-auth/react'; import { Button } from '@documenso/ui/primitives/button'; import { useToast } from '@documenso/ui/primitives/use-toast'; export const DirectTemplateAuthPageView = () => { const { toast } = useToast(); const [isSigningOut, setIsSigningOut] = useState(false); const handleChangeAccount = async () => { try { setIsSigningOut(true); await signOut({ callbackUrl: '/signin', }); } catch { toast({ title: 'Something went wrong', description: 'We were unable to log you out at this time.', duration: 10000, variant: 'destructive', }); } setIsSigningOut(false); }; return (
You need to be logged in to view this page.