Logout

You can use our logout endpoint to expire access or refresh tokens. You also can expire the underlying session(s) that they are tied to (and indirectly all tokens tied to that session).

Request

URL

/api/logout

Data

For the token exchange you will send the following fields.

Name
Value

terminate_session

A boolean. True to expire the session otherwise false.

tokens

An array containing access_token or refresh_token tokens to expire.

Documentation

Revoke a token, cookie, or session

post

Revoke a token or cookie, and optionally the session it belongs to.

Body
terminate_sessionbooleanOptional
tokensstring[]Optional

empty and expired tokens are ignored by FanID

Responses
200

The response

application/json
Responseobject
post
POST /api/logout HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 44

{
  "terminate_session": true,
  "tokens": [
    "text"
  ]
}
{}

Last updated