code: function initSession(storedSession, callback) {
    if (typeof storedSession === "function") {
      callback = storedSession;
    }
  
    core.setSession((storedSession && makeSession(storedSession)) || {});
  
    getStatus({ force: true }, function(err, status) {
      if (status.authenticated) {
        core.events.emit('auth.login', status);
      }
  
      if (typeof callback === "function") {
        callback(err, status);
      }
    });
  }
docs: Sets session to a stored one.
  
  @private
  @method initSession
  @param {Object} storedSession
  @param {Function} [callback]