JWT Authentication

Existen dos procesos importantes, Generar token y Refrescar token, a continuación puedes ver como generar o refrescar un token.

post
Generar Token

https://www.rapigo.co/api/token/
Request
Response
Request
Headers
Content-Type
required
string
application/json
Body Parameters
required
string
{"username":"<user>", "password": "<pass>"}
Response
200: OK
{
"access": "<token>",
"refresh": "<token-for-refresh>"
}
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>"
}