lib/twitch.auth.js
function getStatus(options, callback) {
  if (typeof options === 'function') {
      callback = options;
  }
  if (typeof callback !== 'function') {
      callback = function() {};
  }
  if (!core.session) {
    throw new Error('You must call init() before getStatus()');
  }

  if (options && options.force) {
    updateSession(function(err, session) {
      callback(err, makeSession(session || core.session));
    });
  } else {
    callback(null, makeSession(core.session));
  }
}
function getStatus(options, callback) {
  if (typeof options === 'function') {
      callback = options;
  }
  if (typeof callback !== 'function') {
      callback = function() {};
  }
  if (!core.session) {
    throw new Error('You must call init() before getStatus()');
  }

  if (options && options.force) {
    updateSession(function(err, session) {
      callback(err, makeSession(session || core.session));
    });
  } else {
    callback(null, makeSession(core.session));
  }
}
function getStatus ( options , callback ) { if ( typeof options === 'function' ) { callback = options ; } if ( typeof callback !== 'function' ) { callback = function ( ) { } ; } if ( ! core . session ) { throw new Error ( 'You must call init() before getStatus()' ) ; } if ( options && options . force ) { updateSession ( function ( err , session ) { callback ( err , makeSession ( session || core . session ) ) ; } ) ; } else { callback ( null , makeSession ( core . session ) ) ; } }
Gets the current authentication status.
The `force` property will trigger an API request to update session data.

@method getStatus
@param {Object} options
@param {function} [callback]
Gets the current authentication status . The force property will trigger an API request to update session data .