For the complete documentation index, see llms.txt. This page is also available as Markdown.

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}'
DELETE https://backend.flashback.tech/token/{tokenId} HTTP/1.1
Host: localhost:3000
Accept: application/json
const headers = {
  'Accept':'application/json',
  'Authorization':'Bearer {access-token}'
};

fetch('https://backend.flashback.tech/token/{tokenId}',
{
  method: 'DELETE',
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

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?