# auth.login

Source: https://docs.lightair.app/developers/remote-api/auth.login

> Signs this connection in with the remote API's password.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Session. Script plugins can't call it.

Send it first, unless you connected with the password as `Authorization: Bearer <password>`. Until then every other method answers unauthorized (-32001). The password is shown in **Settings › Remote API**.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `password` | `string` | yes | The remote API's password. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `authenticated` | `boolean` | no | true. |

## Errors

Unauthorized (-32001) for a wrong password.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "auth.login", "params": { "password": "…" } }
```

Result:

```json
{ "authenticated": true }
```

## Related

- [events.subscribe](https://docs.lightair.app/developers/remote-api/events.subscribe.md)
- [app.version](https://docs.lightair.app/developers/remote-api/app.version.md)
