fix: resolve social login issue in AuthForm on sign-up page (#7490)

This commit is contained in:
Pablo Lara
2025-04-11 09:59:10 +02:00
committed by Pepe Fagoaga
parent 1c5348d846
commit f7ed5bd365
+6 -1
View File
@@ -1,5 +1,5 @@
import { AuthForm } from "@/components/auth/oss";
import { isGithubOAuthEnabled } from "@/lib/helper";
import { getAuthUrl, isGithubOAuthEnabled } from "@/lib/helper";
import { isGoogleOAuthEnabled } from "@/lib/helper";
import { SearchParamsProps } from "@/types";
@@ -9,10 +9,15 @@ const SignUp = ({ searchParams }: { searchParams: SearchParamsProps }) => {
? searchParams.invitation_token
: null;
const GOOGLE_AUTH_URL = getAuthUrl("google");
const GITHUB_AUTH_URL = getAuthUrl("github");
return (
<AuthForm
type="sign-up"
invitationToken={invitationToken}
googleAuthUrl={GOOGLE_AUTH_URL}
githubAuthUrl={GITHUB_AUTH_URL}
isGoogleOAuthEnabled={isGoogleOAuthEnabled}
isGithubOAuthEnabled={isGithubOAuthEnabled}
/>