khonlieu
04/02/2024, 3:56 PMrahul1
04/02/2024, 3:58 PMkhonlieu
04/02/2024, 4:01 PMrahul1
04/02/2024, 6:39 PMrahul1
04/02/2024, 6:43 PMMedplumClient is utility class that wraps the Medplum API endpoints. As such, it only allows an application to take actions that the user could also take via API.rahul1
04/02/2024, 6:52 PMkhonlieu
04/02/2024, 7:22 PMreact project, in the src/auth/NewUserForm.tsx, there's a piece of code that says
await medplum.startNewUser({
projectId: props.projectId,
clientId: props.clientId,
firstName: formData.firstName,
lastName: formData.lastName,
email: formData.email,
password: formData.password,
remember: formData.remember === 'true',
recaptchaSiteKey,
recaptchaToken,
})
Initially I thought that was the only information required to create a new user using the medplum client. I'm guessing that creates a pending/"unconfirmed" user that has no access until they confirm they're account via an email link or something?rahul1
04/08/2024, 7:29 AM/invite endpoint: https://www.medplum.com/docs/auth/user-management-guide#invite-via-apirahul1
04/08/2024, 7:47 AMNewUserForm is a bit different, as it handles the open registration case: https://www.medplum.com/docs/auth/open-patient-registration