> ## Documentation Index
> Fetch the complete documentation index at: https://dev.mc2.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# Auth

## auth

### Login

Code: 10020

**Parameters:**

| Name            | Type              |
| --------------- | ----------------- |
| address         | BlockchainAddress |
| signature\_text | String            |
| signature       | String            |
| service         | service           |
| device\_id      | String            |
| device\_os      | String            |

**Returns:**

| Name          | Type              |
| ------------- | ----------------- |
| address       | BlockchainAddress |
| display\_name | String            |
| avatar        | Optional\[String] |
| role          | role              |
| user\_id      | BigInt            |
| user\_token   | UUID              |
| admin\_token  | UUID              |

### Signup

Code: 10010

**Parameters:**

| Name            | Type              |
| --------------- | ----------------- |
| address         | BlockchainAddress |
| signature\_text | String            |
| signature       | String            |
| email           | String            |
| phone           | String            |
| agreed\_tos     | Boolean           |
| agreed\_privacy | Boolean           |
| username        | String            |

**Returns:**

| Name     | Type              |
| -------- | ----------------- |
| address  | BlockchainAddress |
| user\_id | BigInt            |

### Authorize

Code: 10030

**Parameters:**

| Name       | Type              |
| ---------- | ----------------- |
| address    | BlockchainAddress |
| token      | UUID              |
| service    | service           |
| device\_id | String            |
| device\_os | String            |

**Returns:**

| Name    | Type    |
| ------- | ------- |
| success | Boolean |

### Logout

Code: 10040

**Parameters:**

| Name | Type |
| ---- | ---- |

**Returns:**

| Name | Type |
| ---- | ---- |

### ChangeLoginWallet

Code: 10050

**Parameters:**

| Name                 | Type              |
| -------------------- | ----------------- |
| old\_address         | BlockchainAddress |
| old\_signature\_text | String            |
| old\_signature       | String            |
| new\_address         | BlockchainAddress |
| new\_signature\_text | String            |
| new\_signature       | String            |

**Returns:**

| Name | Type |
| ---- | ---- |
