;
goto: (path: string) => void;
- enableGoogle?: boolean;
- enableApple?: boolean;
successRedirect?: string;
registerPath?: string;
forgotPasswordPath?: string;
@@ -102,12 +91,8 @@
logo: Logo,
primaryColor,
onSignIn,
- onSignInWithGoogle,
- onSignInWithApple,
onResendVerification,
goto,
- enableGoogle = false,
- enableApple = false,
successRedirect = '/dashboard',
registerPath = '/register',
forgotPasswordPath = '/forgot-password',
@@ -269,23 +254,6 @@
}
}
- async function handleGoogleSuccess(idToken: string) {
- if (!onSignInWithGoogle) return;
- loading = true;
- clearError();
-
- const result = await onSignInWithGoogle(idToken);
- loading = false;
-
- if (result.success) {
- showSuccess = true;
- successAnnouncement = t.googleSignInSuccess;
- setTimeout(() => goto(successRedirect), 600);
- } else {
- setError(result.error || t.googleSignInFailed, 'general');
- }
- }
-
function skipToForm() {
if (emailInput) emailInput.focus();
}
@@ -519,20 +487,6 @@
- {#if enableGoogle || enableApple}
-
- {t.orDivider}
-
-
- {/if}
-
{t.noAccount}