delete__token_{tokenId}

DELETE /token/{tokenId}

Revoke Token

Revoke a specific refresh token

TypeScript Client Library

  public revokeToken = async (tokenId: string): Promise<{ success: boolean }> => {
    return this.makeRequest<{ success: boolean }>(`token/${tokenId}`, 'DELETE', null);
  };

Code Samples

# You can also use wget
curl -X DELETE https://backend.flashback.tech/token/{tokenId} \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

Parameters

Name
In
Type
Required
Description

tokenId

path

string

true

none

Example responses

200 Response

{
  "success": true
}

Responses

Status
Meaning
Description
Schema

200

Token revoked successfully

Inline

Response Schema

Status Code 200

Name
Type
Required
Restrictions
Description

» success

boolean

false

none

none

Last updated

Was this helpful?