## MedplumClient.startLogin() method [​](/content/docs/sdk/core.medplumclient.startlogin#medplumclientstartlogin-method "Direct link to MedplumClient.startLogin(/index.html) method")

Initiates a user login flow.

**Signature:**

```typescript
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](/content/docs/sdk/core.emailpasswordloginrequest) | Login request including email and password. |
| options | [MedplumRequestOptions](/content/docs/sdk/core.medplumrequestoptions) | _(Optional)_ Optional fetch options. |

**Returns:**

Promise< [LoginAuthenticationResponse](/content/docs/sdk/core.loginauthenticationresponse) >

Promise to the authentication response.

- [MedplumClient.startLogin() method](/content/docs/sdk/core.medplumclient.startlogin#medplumclientstartlogin-method/index.html)
- [Parameters](/content/docs/sdk/core.medplumclient.startlogin#parameters/index.html)
