-
Notifications
You must be signed in to change notification settings - Fork 4
RefreshJwt
Walter Lara edited this page Apr 25, 2022
·
2 revisions
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.
URL: /v1/auth/refresh
Method: GET
Path Parameters: None
Query Parameters: None
Headers:
Authorization: Bearer {refreshToken}
Accept: application/json
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"
}
Code: 401 UNAUTHORIZED
Condition: If {refreshToken}
is invalid or expired.