TWIN Supply Chain Docs
API ReferenceAuthentication

Logout

POST/authentication/logout

Authorization

jwtBearerAuthScheme
AuthorizationBearer <token>

In: header

Request Body

application/json

Perform a logout on the auth token.

TypeScript Definitions

Use the request body type in TypeScript.

The logout token details.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/authentication/logout" \  -H "Content-Type: application/json" \  -d '{    "token": "eyJhbGciOiJIU...sw5c"  }'
Empty
{  "name": "GeneralError",  "message": "errorMessage",  "properties": {    "foo": "bar"  }}
{  "name": "UnauthorizedError",  "message": "errorMessage"}
{  "name": "InternalServerError",  "message": "errorMessage"}

Invalidates the session behind the current token. The access_token cookie is cleared, so a browser session ends immediately; scripts holding a copy of the token should discard it.