Fanatics EcoSystem
  • Fanatics ID
  • Loyalty
  • Start Here
  • Setup
  • Single Sign On
    • Authorization
    • Code Exchange
    • Refresh Token
    • Logout
    • ID Token
    • Environments
    • Scopes
    • Account Management
    • OpenID Config
  • Server to Server
    • Authentication
    • Environments
    • Scopes
  • Point of Sale
    • Assertion Usage
Powered by GitBook
On this page
  1. Single Sign On

Logout

PreviousRefresh TokenNextID Token

Last updated 3 months ago

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

  • Request
  • URL
  • Data
  • Documentation
  • POSTRevoke a token, cookie, or session

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
400
Bad request
application/json
404
Not Found
application/json
429
Rate Limited
application/json
500
Internal error
application/json
post
POST /api/logout HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 44

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