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
---
.../red-right-hand/174bg.net/src/app/login/page.js | 51 ----------------------
1 file changed, 51 deletions(-)
delete mode 100644 communities/red-right-hand/174bg.net/src/app/login/page.js
(limited to 'communities/red-right-hand/174bg.net/src/app/login/page.js')
diff --git a/communities/red-right-hand/174bg.net/src/app/login/page.js b/communities/red-right-hand/174bg.net/src/app/login/page.js
deleted file mode 100644
index b2b1ea8..0000000
--- a/communities/red-right-hand/174bg.net/src/app/login/page.js
+++ /dev/null
@@ -1,51 +0,0 @@
-"use client";
-
-import { Suspense, useEffect, useState } from "react";
-import { useSearchParams } from "next/navigation";
-import { authClient } from "@/lib/auth-client";
-
-function LoginRedirect() {
- const searchParams = useSearchParams();
- const callbackUrl = searchParams.get("callbackUrl") ?? "/secure";
- const [error, setError] = useState(null);
-
- const signIn = () => {
- authClient.signIn
- .social({
- provider: "discord",
- callbackURL: callbackUrl,
- })
- .then(({ error }) => {
- if (error) setError(error.message ?? "Sign-in failed");
- });
- };
-
- useEffect(() => {
- signIn();
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, []);
-
- if (error) {
- return (
-
-
Error: {error}
-
-
- );
- }
-
- return (
-
-
Redirecting to Discord...
-
-
- );
-}
-
-export default function LoginPage() {
- return (
- Loading...
}>
-
-
- );
-}
--
cgit v1.2.3