From 03a311e78db01ec2ce8a34b6a646a05ae43f76a5 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com.> Date: Fri, 15 Aug 2025 14:53:49 +0100 Subject: [PATCH] add linkedin --- frontend/src/routes/AuthDebug.tsx | 11 +++++++++- frontend/src/routes/Login.tsx | 11 ++++++++-- frontend/src/routes/LoginCompact.tsx | 31 +++++++++++++++++++++++++++- 3 files changed, 49 insertions(+), 4 deletions(-) diff --git a/frontend/src/routes/AuthDebug.tsx b/frontend/src/routes/AuthDebug.tsx index f1488a1a2..9280f1f08 100644 --- a/frontend/src/routes/AuthDebug.tsx +++ b/frontend/src/routes/AuthDebug.tsx @@ -92,7 +92,7 @@ export default function AuthDebug() { alert(`Cleared ${keys.length} auth-related localStorage keys`) } - const testSignIn = async (provider: 'github' | 'google' | 'facebook' = 'github') => { + const testSignIn = async (provider: 'github' | 'google' | 'facebook' | 'linkedin_oidc' = 'github') => { try { // Supabase redirects back to your app after OAuth const redirectTo = `${window.location.origin}/auth/callback` @@ -103,6 +103,8 @@ export default function AuthDebug() { redirectTo, queryParams: provider === 'facebook' ? { scope: 'email' } + : provider === 'linkedin_oidc' + ? { scope: 'openid profile email' } : { access_type: 'offline', prompt: 'consent', @@ -350,6 +352,13 @@ export default function AuthDebug() { Test Facebook Sign In + + {session && ( + + {/* LinkedIn */} + {/* Footer */}