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

Invalidating token

If you wish to invalidate the token, you will need to call our API. (see Implementation page for URLs).

const accessToken = 'aYsxMIy3XguB9YORh2GzAL8E60MsVvXbG8IHxNFooSo'
const tokenUrl = 'http://api-sandbox.edgetag.io/v1/oauth-app/client/revoke'

const body = new URLSearchParams({
  token: accessToken,
  token_type_hint: 'access_token',
})

const response = await fetch(tokenUrl.toString(), {
  method: 'POST',
  headers: {
    'Content-Type': 'application/x-www-form-urlencoded',
    Authorization: `Basic ${btoa(clientId + ':' + clientSecret)}`,
  },
  body
})

For the access token, use the latest valid access token for that user. This will immediately invalidate users' access.

Last updated

Was this helpful?