diff --git a/src/app/clipboard/page.tsx b/src/app/clipboard/page.tsx index 901041d..2a76c27 100644 --- a/src/app/clipboard/page.tsx +++ b/src/app/clipboard/page.tsx @@ -1,9 +1,14 @@ "use server"; +import { auth, signIn } from "@/auth"; import { getClipboard } from "./action"; import ClipboardComponent from "./ClipboardComponent"; export default async function ClipboardPage() { + if ((await auth())?.user == null) { + await signIn(); + } + const clipboard = await getClipboard(); return ( <>