fix: add conditional rendering of OAuth providers (#736)

Now google OAuth provider is not rendered if client id is not provided
This commit is contained in:
Anurag Sharma
2024-01-23 11:38:48 +05:30
committed by GitHub
parent e63122a718
commit 6aed075c56
3 changed files with 30 additions and 18 deletions

View File

@ -1,5 +1,7 @@
import Link from 'next/link';
import { IS_GOOGLE_SSO_ENABLED } from '@documenso/lib/constants/auth';
import { SignInForm } from '~/components/forms/signin';
export default function SignInPage() {
@ -11,7 +13,7 @@ export default function SignInPage() {
Welcome back, we are lucky to have you.
</p>
<SignInForm className="mt-4" />
<SignInForm className="mt-4" isGoogleSSOEnabled={IS_GOOGLE_SSO_ENABLED} />
{process.env.NEXT_PUBLIC_DISABLE_SIGNUP !== 'true' && (
<p className="text-muted-foreground mt-6 text-center text-sm">