# JWT Authentication

## Generar Token

<mark style="color:green;">`POST`</mark> `https://www.rapigo.co/api/token/`

#### Headers

| Name         | Type   | Description      |
| ------------ | ------ | ---------------- |
| Content-Type | string | application/json |

#### Request Body

| Name | Type   | Description                                   |
| ---- | ------ | --------------------------------------------- |
|      | string | {"username":"\<user>", "password": "\<pass>"} |

{% tabs %}
{% tab title="200 " %}

```javascript
{
    "access": "<token>",
    "refresh": "<token-for-refresh>"
}
```

{% endtab %}
{% endtabs %}

```bash
curl \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"username": "<username>", "password": "<password>"}' \
  https://www.rapigo.co/api/token/

...
{
  "access":"<token>",
  "refresh":"<token-for-refresh>"
}
```
