code | type | title |
---|---|---|
true |
page |
checkToken |
Checks the validity of an authentication token.
URL: http://kuzzle:7512/_checkToken
Method: POST
Body:
{
"token": "<the JWT to check>"
}
{
"controller": "auth",
"action": "checkToken",
"body": {
"token": "<the JWT to check>"
}
}
token
: the authentication token to be tested
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 ifvalid
is falseexpiresAt
: token expiration timestamp. Present only ifvalid
is true
Example:
{
"status": 200,
"error": null,
"controller": "auth",
"action": "checkToken",
"requestId": "<unique request identifier>",
"result": {
"valid": true,
"expiresAt": 1538557452248
}
}