diff --git a/client/components/new-post/index.tsx b/client/components/new-post/index.tsx
index 373c62f3..65b9f5a1 100644
--- a/client/components/new-post/index.tsx
+++ b/client/components/new-post/index.tsx
@@ -80,7 +80,6 @@ const Post = () => {
else setDocs([...docs, ...files])
}, [docs, title])
-
return (
diff --git a/client/lib/hooks/use-signed-in.ts b/client/lib/hooks/use-signed-in.ts
index 2ad7f7cf..b8cedc94 100644
--- a/client/lib/hooks/use-signed-in.ts
+++ b/client/lib/hooks/use-signed-in.ts
@@ -6,7 +6,10 @@ import Cookies from 'js-cookie'
const useSignedIn = ({ redirectIfNotAuthed = false }: { redirectIfNotAuthed?: boolean }) => {
const [isSignedIn, setSignedIn] = useSharedState('isSignedIn', false)
const [isLoading, setLoading] = useSharedState('isLoading', true)
- const signout = useCallback(() => setSignedIn(false), [setSignedIn])
+ const signout = useCallback(() => {
+ Cookies.remove('drift-token')
+ setSignedIn(false)
+ }, [setSignedIn])
const router = useRouter();
if (redirectIfNotAuthed && !isLoading && isSignedIn === false) {