From 0e28d43ed23080bb64e24cfe6b710690f74f9c70 Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Wed, 13 May 2026 17:28:17 +0100 Subject: add Discord data page to display user account information --- .../174bg.net/src/app/secure/discord-data/page.js | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 communities/red-right-hand/174bg.net/src/app/secure/discord-data/page.js (limited to 'communities/red-right-hand/174bg.net/src/app') 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 new file mode 100644 index 0000000..b906569 --- /dev/null +++ b/communities/red-right-hand/174bg.net/src/app/secure/discord-data/page.js @@ -0,0 +1,24 @@ +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,
+        )}
+      
+
+ ); +} -- cgit v1.2.3