aboutsummaryrefslogtreecommitdiff
path: root/communities/red-right-hand/174bg.net/src/app/secure/page.js
diff options
context:
space:
mode:
Diffstat (limited to 'communities/red-right-hand/174bg.net/src/app/secure/page.js')
-rw-r--r--communities/red-right-hand/174bg.net/src/app/secure/page.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/communities/red-right-hand/174bg.net/src/app/secure/page.js b/communities/red-right-hand/174bg.net/src/app/secure/page.js
new file mode 100644
index 0000000..27312b7
--- /dev/null
+++ b/communities/red-right-hand/174bg.net/src/app/secure/page.js
@@ -0,0 +1,13 @@
+import { auth } from "@/auth";
+import { headers } from "next/headers";
+
+export default async function SecurePage() {
+ const session = await auth.api.getSession({ headers: await headers() });
+
+ return (
+ <main>
+ <h1>Secure Area</h1>
+ <p>Welcome, {session?.user?.name ?? session?.user?.email}!</p>
+ </main>
+ );
+}