src/scope/User.js
/**
   * Log current user out of EVRYTHNG platform. The API key is no longer valid.
   *
   * @param {Function} callback - Error first callback
   * @returns {Promise.<void>}
   */
Log current user out of EVRYTHNG platform. The API key is no longer valid.
@param {Function} callback - Error first callback
@returns {Promise.}
Log current user out of EVRYTHNG platform . The API key is no longer valid . @param { Function } callback - Error first callback @returns { Promise . }
async logout (callback) {
    try {
      const res = await this._invalidateUser()
      if (callback) callback(res)
      return res
    } catch (err) {
      if (callback) callback(err)
      throw err
    }
  }
async logout ( callback ) { try { const res = await this . _invalidateUser ( ) if ( callback ) callback ( res ) return res } catch ( err ) { if ( callback ) callback ( err ) throw err } }
Log current user out of EVRYTHNG platform.
Log current user out of EVRYTHNG platform .