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?: MedplumRequestOptions): Promise<LoginAuthenticationResponse>;

Parameters

Parameter

Type

Description

loginRequest

EmailPasswordLoginRequest

Login request including email and password.

options

MedplumRequestOptions

(Optional) Optional fetch options.

Returns:

Promise<LoginAuthenticationResponse>

Promise to the authentication response.