ensure login for clipboard
All checks were successful
Build / build (push) Successful in 4m33s

This commit is contained in:
Nareshkumar Rao 2025-04-22 12:22:06 +02:00
parent 86ec00de4c
commit 8b46bf354e

View File

@ -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 (
<>