lib/PassportClient.js
function(global, refreshToken) {
    return new Promise((resolve, reject) => {
      this._start()
          .uri('/api/logout')
          .urlParameter('global', global)
          .urlParameter('refreshToken', refreshToken)
          .post()
          .go(this._responseHandler(resolve, reject));
    });
  }
function(global, refreshToken) {
    return new Promise((resolve, reject) => {
      this._start()
          .uri('/api/logout')
          .urlParameter('global', global)
          .urlParameter('refreshToken', refreshToken)
          .post()
          .go(this._responseHandler(resolve, reject));
    });
  }
function ( global , refreshToken ) { return new Promise ( ( resolve , reject ) => { this . _start ( ) . uri ( '/api/logout' ) . urlParameter ( 'global' , global ) . urlParameter ( 'refreshToken' , refreshToken ) . post ( ) . go ( this . _responseHandler ( resolve , reject ) ) ; } ) ; }
The Logout API is intended to be used to remove the refresh token and access token cookies if they exist on the
client and revoke the refresh token stored. This API does nothing if the request does not contain an access
token or refresh token cookies.

@param {Object} global When this value is set to true all of the refresh tokens issued to the owner of the
provided token will be revoked.
@param {?string} refreshToken (Optional) The refresh_token as a request parameter instead of coming in via a cookie.
If provided this takes precedence over the cookie.
@return {Promise} A Promise for the Passport call.
The Logout API is intended to be used to remove the refresh token and access token cookies if they exist on the client and revoke the refresh token stored . This API does nothing if the request does not contain an access token or refresh token cookies .