Skip to content

Commit 6236697

Browse files
committed
pass google client id
1 parent 186eea7 commit 6236697

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/pages/SignInPage.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
import { Title } from '@mantine/core';
22
import { Logo, SignInForm } from '@medplum/react';
33
import { useNavigate } from 'react-router-dom';
4-
import { MEDPLUM_PROJECT_ID } from '../config';
4+
import { MEDPLUM_GOOGLE_CLIENT_ID, MEDPLUM_PROJECT_ID } from '../config';
55

66
export function SignInPage(): JSX.Element {
77
const navigate = useNavigate();
88

99
return (
10-
<SignInForm projectId={MEDPLUM_PROJECT_ID} onSuccess={() => navigate('/')}>
10+
<SignInForm
11+
projectId={MEDPLUM_PROJECT_ID}
12+
googleClientId={MEDPLUM_GOOGLE_CLIENT_ID || undefined}
13+
onSuccess={() => navigate('/')}
14+
>
1115
<Logo size={32} />
1216
<Title>Sign in to SampleMed Regional Portal </Title>
1317
</SignInForm>

0 commit comments

Comments
 (0)