delete__token_{tokenId}
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/jsonconst 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);
});Name
In
Type
Required
Description
{
"success": true
}Status
Meaning
Description
Schema
Name
Type
Required
Restrictions
Description
Last updated
Was this helpful?