core.medplumclient.startlogin | Medplum
MedplumClient.startLogin() method
Initiates a user login flow.
Signature:
startLogin(loginRequest: EmailPasswordLoginRequest, options?: MedplumRequestOptions): Promise<LoginAuthenticationResponse>;
Parameters [](/content/docs/sdk/core.medplumclient.startlogin#parameters "Direct link to Parameters"/index.html)
| 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.