Skip to content

POST refresh

MattZK edited this page Oct 25, 2019 · 2 revisions

POST /auth/refresh

Refresh the JWT with a refresh token.

HTTP Request

POST https://api.farmlab.team/auth/refresh

Request parameters

Do not supply request params with this method.

Optional request headers

Name Value
accept application/json

Request body

In the request BODY, provide the following body parameters with values.

Key Type Description
token UUIDv4 The refresh token obtained in the login procces

Example

Request
POST https://api.farmlab.team/auth/refresh

BODY
{
    "token": "dea9d7d0-e252-4cf2-a1ce-bd2822abaf4c"
}
Response
{
    "jwt": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWRpZW5jZSI6ImF1ZDoqIiwiaXNzdWVyIjoiRmFybUxhYlRlYW0iLCJzdWIiOiI1ZGE5ZjlkODM4NWNjZTE4MjlhNjYzYmIiLCJpYXQiOjE1NzE5OTExMzMsImV4cCI6MTU3MjA3NzUzM30.2_aJGDjuxEY1-dkI8GBiCUwUk_08naEOjAb4P4JO6LY",
    "refresh": "e50c47b8-b478-43a4-88bf-306874e90969"
}

Remarks

None

Clone this wiki locally