> For the complete documentation index, see [llms.txt](https://sending-network.gitbook.io/sending.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sending-network.gitbook.io/sending.network/sdk-documentation/node.js-sdk/did.md).

# DID

## Login

```typescript
public async didLogin(did: string, message: string, token: string, nonce: string, update_time: string): Promise<any>
```

Input Parameters:

| Name         | Type   | Description                 | Required |
| ------------ | ------ | --------------------------- | -------- |
| did          | string | user DID                    | true     |
| message      | string | signing message             | true     |
| token        | string | signature                   | true     |
| nonce        | string | random nonce                | true     |
| update\_time | string | update time of DID document | true     |

Output Parameters:

| Name          | Type   | Description  | Required |
| ------------- | ------ | ------------ | -------- |
| user\_id      | string | user did     | true     |
| access\_token | string | access token | true     |
| device\_id    | string | device id    | true     |
