diff --git a/apps/trust/src/pages/auth/ConnectPage.tsx b/apps/trust/src/pages/auth/ConnectPage.tsx index b09b60de0..dc98c77b2 100644 --- a/apps/trust/src/pages/auth/ConnectPage.tsx +++ b/apps/trust/src/pages/auth/ConnectPage.tsx @@ -37,6 +37,7 @@ const sendMagicLinkMutation = graphql` `; const schema = z.object({ + fullName: z.string().min(2), email: z.string().email(), }); @@ -103,6 +104,7 @@ export function ConnectPage(props: { } = useFormWithSchema(schema, { defaultValues: { email: "", + fullName: "", }, }); @@ -110,8 +112,8 @@ export function ConnectPage(props: { sendMagicLinkMutation, ); - const handleSubmit = handleSubmitWrapper(({ email }: FormData) => { - const input: SendMagicLinkInput = { email }; + const handleSubmit = handleSubmitWrapper(({ email, fullName }: FormData) => { + const input: SendMagicLinkInput = { email, fullName }; if (safeContinueUrl) { input.continue = safeContinueUrl; } @@ -119,6 +121,7 @@ export function ConnectPage(props: { variables: { input: { email, + fullName, continue: safeContinueUrl, }, }, @@ -170,11 +173,20 @@ export function ConnectPage(props: {