From 000a8455b329e2c35248c6e772f8fc73cc76232b Mon Sep 17 00:00:00 2001 From: "[dyad]" Date: Fri, 30 Jan 2026 10:08:20 +0100 Subject: [PATCH] [dyad] Re-enabled Pocket ID login - wrote 1 file(s) --- src/app/login/page.tsx | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/app/login/page.tsx b/src/app/login/page.tsx index 2ac205b..b749aac 100644 --- a/src/app/login/page.tsx +++ b/src/app/login/page.tsx @@ -5,7 +5,9 @@ import { Auth } from "@supabase/auth-ui-react"; import { ThemeSupa } from "@supabase/auth-ui-shared"; import { useEffect } from "react"; import { useRouter } from "next/navigation"; -import type { AuthChangeEvent, Session } from "@supabase/supabase-js"; +import { Button } from "@/components/ui/button"; +import { KeyRound } from "lucide-react"; +import type { AuthChangeEvent, Session, Provider } from "@supabase/supabase-js"; export default function LoginPage() { const router = useRouter(); @@ -20,6 +22,12 @@ export default function LoginPage() { return () => subscription.unsubscribe(); }, [router]); + const handleOidcSignIn = async () => { + await supabase.auth.signInWithOAuth({ + provider: 'pocket_id' as Provider, + }); + }; + return (
@@ -35,6 +43,20 @@ export default function LoginPage() { view="sign_in" showLinks={true} /> +
+
+ +
+
+ + Or continue with + +
+
+
);