Skip to content

Commit f7ed5bd

Browse files
paabloLCjfagoagas
authored andcommitted
fix: resolve social login issue in AuthForm on sign-up page (#7490)
1 parent 1c5348d commit f7ed5bd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ui/app/(auth)/sign-up/page.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { AuthForm } from "@/components/auth/oss";
2-
import { isGithubOAuthEnabled } from "@/lib/helper";
2+
import { getAuthUrl, isGithubOAuthEnabled } from "@/lib/helper";
33
import { isGoogleOAuthEnabled } from "@/lib/helper";
44
import { SearchParamsProps } from "@/types";
55

@@ -9,10 +9,15 @@ const SignUp = ({ searchParams }: { searchParams: SearchParamsProps }) => {
99
? searchParams.invitation_token
1010
: null;
1111

12+
const GOOGLE_AUTH_URL = getAuthUrl("google");
13+
const GITHUB_AUTH_URL = getAuthUrl("github");
14+
1215
return (
1316
<AuthForm
1417
type="sign-up"
1518
invitationToken={invitationToken}
19+
googleAuthUrl={GOOGLE_AUTH_URL}
20+
githubAuthUrl={GITHUB_AUTH_URL}
1621
isGoogleOAuthEnabled={isGoogleOAuthEnabled}
1722
isGithubOAuthEnabled={isGithubOAuthEnabled}
1823
/>

0 commit comments

Comments
 (0)