fix: redundancy for redirect

This commit is contained in:
2026-01-14 03:10:10 -05:00
parent 9aa0179d2e
commit ee98bc6fcb

View File

@@ -49,26 +49,15 @@ function SignInForm() {
} }
async function handleSocialSignIn() { async function handleSocialSignIn() {
console.log("[SIGN IN PAGE] SSO button clicked");
console.log("[SIGN IN PAGE] authClient:", authClient);
console.log("[SIGN IN PAGE] authClient.signIn:", authClient.signIn);
setLoading(true); setLoading(true);
try { try {
console.log("[SIGN IN PAGE] Calling authClient.signIn.sso with:", { await authClient.signIn.sso({
providerId: "authentik",
callbackURL: callbackUrl,
});
const result = await authClient.signIn.sso({
domain: "beenvoice.soconnor.dev", domain: "beenvoice.soconnor.dev",
callbackURL: callbackUrl, callbackURL: callbackUrl,
}); });
// The signIn.sso method will automatically redirect to the SSO provider
console.log("[SIGN IN PAGE] SSO result:", result);
} catch (error) { } catch (error) {
console.error("[SIGN IN PAGE] SSO error:", error); console.error("[SSO Error]", error);
} finally {
setLoading(false); setLoading(false);
} }
} }