Skip to main content

core.medplumclient.startlogin

Home > @medplum/core > MedplumClient > startLogin

MedplumClient.startLogin() method

Initiates a user login flow.

Signature:

startLogin(loginRequest: EmailPasswordLoginRequest, options?: RequestInit): Promise<LoginAuthenticationResponse>;

Parameters

ParameterTypeDescription
loginRequestEmailPasswordLoginRequestLogin request including email and password.
optionsRequestInit(Optional) Optional fetch options.

Returns:

Promise<LoginAuthenticationResponse>

Promise to the authentication response.