Refreshing authentication tokens
Protocol: HTTP
Encoding: JSON
Endpoint: /auth/api/v1/authentication-management/session
Method: PATCH
Header: Authorization
is represented by a string
that is the refreshToken
value that was returned either at the authorization, or the previous time the token has been refreshed.
Parameters: —
Input/request structure:
A PATCH
request to the endpoint, where the Authorization
header is required.
Output/response structure:
Show
json5
{
status: {
code: 0, //integer($int32)
name: 'string',
message: 'string'
},
data: {
accessToken: 'string',
refreshToken: 'string',
expirationTime: 0 //integer($int64)
}
}
{
status: {
code: 0, //integer($int32)
name: 'string',
message: 'string'
},
data: {
accessToken: 'string',
refreshToken: 'string',
expirationTime: 0 //integer($int64)
}
}
Responses
Response Code | Description |
---|---|
200 | Authentication tokens have been refreshed successfully. |
401 | Either the signature or refresh token are not valid, or the Bearer token could not be parsed from the Authorization header. |
404 | User not found. |
500 | Internal server error. |