src/api/auth.js
function () {
    this.log('Deauthorizing...');
    return this.Request.delete('/auth').auth().execute()
      .then(function (response) {
        // Clear auth data from storage upon deauthorization
        this.storage.clear();
        clearAuthData.call(this);

        this.log('Deauthorized and cleared from storage.');

        return response;
      }.bind(this));
  }
function () {
    this.log('Deauthorizing...');
    return this.Request.delete('/auth').auth().execute()
      .then(function (response) {
        // Clear auth data from storage upon deauthorization
        this.storage.clear();
        clearAuthData.call(this);

        this.log('Deauthorized and cleared from storage.');

        return response;
      }.bind(this));
  }
function ( ) { this . log ( 'Deauthorizing...' ) ; return this . Request . delete ( '/auth' ) . auth ( ) . execute ( ) . then ( function ( response ) { // Clear auth data from storage upon deauthorization this . storage . clear ( ) ; clearAuthData . call ( this ) ; this . log ( 'Deauthorized and cleared from storage.' ) ; return response ; } . bind ( this ) ) ; }
Deauthorizes you from the launcher, and removed saved auth data from storage.
@returns {*}
Deauthorizes you from the launcher and removed saved auth data from storage .