File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11import { AuthForm } from "@/components/auth/oss" ;
2- import { isGithubOAuthEnabled } from "@/lib/helper" ;
2+ import { getAuthUrl , isGithubOAuthEnabled } from "@/lib/helper" ;
33import { isGoogleOAuthEnabled } from "@/lib/helper" ;
44import { 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 />
You can’t perform that action at this time.
0 commit comments