lib/helpers/revoke-token.js
function revokeToken(config, token, tokenType, callback) {
  callback = callback || function () {};

  var req = {
    url: config.org + 'oauth2/' + config.authorizationServerId + '/v1/revoke',
    method: 'POST',
    form: {
      token: tokenType,
      token_type_hint: tokenType,
      client_id: config.authorizationServerClientId,
      client_secret: config.authorizationServerClientSecret
    }
  };

  requestExecutor(req, callback);
}
function revokeToken(config, token, tokenType, callback) {
  callback = callback || function () {};

  var req = {
    url: config.org + 'oauth2/' + config.authorizationServerId + '/v1/revoke',
    method: 'POST',
    form: {
      token: tokenType,
      token_type_hint: tokenType,
      client_id: config.authorizationServerClientId,
      client_secret: config.authorizationServerClientSecret
    }
  };

  requestExecutor(req, callback);
}
function revokeToken ( config , token , tokenType , callback ) { callback = callback || function ( ) { } ; var req = { url : config . org + 'oauth2/' + config . authorizationServerId + '/v1/revoke' , method : 'POST' , form : { token : tokenType , token_type_hint : tokenType , client_id : config . authorizationServerClientId , client_secret : config . authorizationServerClientSecret } } ; requestExecutor ( req , callback ) ; }
Revoke a token.

@method
@private

@param {tokenResolverFn} tokenResolver - Function that resolves a token of some kind.
@param {string} jwt - Raw JWT.
@param {string} jwtSigningKey - Secret used to sign the JWT.
@param {callbackFn} callback - Optional callback.
Revoke a token .