/auth

Revoke the authorisation token obtained from SAFE Launcher.

Applications can invalidate their authorisation token with SAFE Launcher.

The Authorization header must be present in the request.

Request Header

Authorization: Bearer <TOKEN>

Response

Ok
Bad request
Unauthorized

Examples

var request = require('request');
var endPoint = 'http://localhost:8100/auth';

var onResponse = function(err, response, body) {
  if (err) {
    return console.error(err.message);
  }
  if (response.statusCode === 200) {
    return console.log('Auth token revoked');
  }
  console.error('Failed with status code -', response.statusCode);
};

request.del(endPoint, {  
  auth: {
    bearer: constants.token // pass auth token
  }
}, onResponse);
Language
Click Try It! to start a request and see the response here!