From f1dfb1240f1f315d1d0e253865c715f31502e289 Mon Sep 17 00:00:00 2001 From: pulipakaa24 Date: Fri, 10 Apr 2026 00:31:44 -0500 Subject: [PATCH] Apple login --- components/auth/LoginForm.tsx | 15 ++++++ server/package.json | 2 + server/src/auth/auth.ts | 97 +++++++++++++++++++++++++++++++++++ 3 files changed, 114 insertions(+) diff --git a/components/auth/LoginForm.tsx b/components/auth/LoginForm.tsx index 2c657f9..e8500a8 100644 --- a/components/auth/LoginForm.tsx +++ b/components/auth/LoginForm.tsx @@ -89,6 +89,10 @@ export function LoginForm({ onSignUp, onForgotPassword }: Props) { await signIn.social({ provider: 'google', callbackURL: window.location.origin, errorCallbackURL: window.location.origin }); } + async function handleApple() { + await signIn.social({ provider: 'apple', callbackURL: window.location.origin, errorCallbackURL: window.location.origin }); + } + function scrollToAbout() { aboutRef.current?.scrollIntoView({ behavior: 'smooth' }); } @@ -204,6 +208,17 @@ export function LoginForm({ onSignUp, onForgotPassword }: Props) { Sign in with Google + +