Skip to main content

Validate access token

Returns 200 if the bearer token is valid. Returns 401 otherwise.

Request

Method: GET
Path: /api/users/check-token

Authentication: Not required

Responses

200 - Token valid

401 - Token invalid or expired

Examples

cURL

curl -X GET \
-H "Content-Type: application/json" \
http://localhost:3000/api/users/check-token

JavaScript

const response = await fetch('http://localhost:3000/api/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.