This commit is contained in:
		| @@ -1,9 +1,14 @@ | |||||||
| "use server"; | "use server"; | ||||||
|  |  | ||||||
|  | import { auth, signIn } from "@/auth"; | ||||||
| import { getClipboard } from "./action"; | import { getClipboard } from "./action"; | ||||||
| import ClipboardComponent from "./ClipboardComponent"; | import ClipboardComponent from "./ClipboardComponent"; | ||||||
|  |  | ||||||
| export default async function ClipboardPage() { | export default async function ClipboardPage() { | ||||||
|  |   if ((await auth())?.user == null) { | ||||||
|  |     await signIn(); | ||||||
|  |   } | ||||||
|  |  | ||||||
|   const clipboard = await getClipboard(); |   const clipboard = await getClipboard(); | ||||||
|   return ( |   return ( | ||||||
|     <> |     <> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user