Skip to content

RefreshJwt

Walter Lara edited this page Apr 25, 2022 · 2 revisions

Refresh JWT Access Token

Allows to refresh the JWT access token (technically login) by using the refresh token provided during a previous login. On success, provides a new JWT access token that can be used to access protected resources and a refresh token.

Request

URL: /v1/auth/refresh

Method: GET

Path Parameters: None

Query Parameters: None

Headers:

Authorization: Bearer {refreshToken}

Accept: application/json

✅ Success Response

Code: 200 OK

Headers:

Content-Type: application/json

Content:

Field Type Description Condition
accessToken string JWT token usable to access protected resources. Always
refreshToken string JWT token usable one-time only to refresh an expired accessToken. Always

Content example:

{
    "accessToken": "93144b288eb1fdccbe46d6fc0f241a51766ecd3d",
    "refreshToken": "6d6fc0f241a51766ecd3d93144b288eb1fdccbe4"
}

❌ Error Response

Code: 401 UNAUTHORIZED

Condition: If {refreshToken} is invalid or expired.

See Also

Login using Email/Password

Login using OAuth

Decode JWT Access Token

Request 2FA Code

Clone this wiki locally