Validate JWT token
Check if the provided JWT token is valid
Request
Method: GET
Path: /users/check-token
Authentication: Not required
Responses
200 - Token is valid
401 - Invalid or expired token
Examples
cURL
curl -X GET \
-H "Content-Type: application/json" \
http://localhost:3000/users/check-token
JavaScript
const response = await fetch('http://localhost:3000/users/check-token', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);
This documentation is automatically generated from the OpenAPI specification.