mirror of
https://github.com/soconnor0919/beenvoice.git
synced 2026-02-05 00:06:36 -05:00
fix: redundancy for redirect
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user