From e2066f51523ecba0f1991edd0c2b94f8f4cd1820 Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Sun, 24 May 2026 12:58:49 +0100 Subject: shorten community subdirs --- .../174bg.net/src/app/secure/discord-data/page.js | 24 ---------------------- .../174bg.net/src/app/secure/page.js | 13 ------------ 2 files changed, 37 deletions(-) delete mode 100644 communities/red-right-hand/174bg.net/src/app/secure/discord-data/page.js delete mode 100644 communities/red-right-hand/174bg.net/src/app/secure/page.js (limited to 'communities/red-right-hand/174bg.net/src/app/secure') diff --git a/communities/red-right-hand/174bg.net/src/app/secure/discord-data/page.js b/communities/red-right-hand/174bg.net/src/app/secure/discord-data/page.js deleted file mode 100644 index b906569..0000000 --- a/communities/red-right-hand/174bg.net/src/app/secure/discord-data/page.js +++ /dev/null @@ -1,24 +0,0 @@ -import { auth } from "@/auth"; -import { headers } from "next/headers"; - -export default async function DiscordData() { - const session = await auth.api.getSession({ headers: await headers() }); - const accounts = await auth.api.listUserAccounts({ - headers: await headers(), - }); - const discordAccount = accounts?.find((a) => a.provider === "discord"); - - return ( -
-

Discord Data

-

The following data is stored about your Discord account:

-
-        {JSON.stringify(
-          { user: session?.user, account: discordAccount },
-          null,
-          2,
-        )}
-      
-
- ); -} 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 deleted file mode 100644 index 27312b7..0000000 --- a/communities/red-right-hand/174bg.net/src/app/secure/page.js +++ /dev/null @@ -1,13 +0,0 @@ -import { auth } from "@/auth"; -import { headers } from "next/headers"; - -export default async function SecurePage() { - const session = await auth.api.getSession({ headers: await headers() }); - - return ( -
-

Secure Area

-

Welcome, {session?.user?.name ?? session?.user?.email}!

-
- ); -} -- cgit v1.2.3