checkToken #
Checks the validity of an authentication token.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_checkToken
Method: POST
Body:{
"token": "<the JWT to check>"
}Other protocols #
{
"controller": "auth",
"action": "checkToken",
"body": {
"token": "<the JWT to check>"
}
}Body properties #
token: the authentication token to be tested
Response #
The returned result contains the following properties:
valid: a boolean telling whether the provided token is validstate: the reason why a token is invalid. Present only ifvalidis falseexpiresAt: token expiration timestamp. Present only ifvalidis true
Example:
{
"status": 200,
"error": null,
"controller": "auth",
"action": "checkToken",
"requestId": "<unique request identifier>",
"result": {
"valid": true,
"expiresAt": 1538557452248
}
}