stackmob-js-0.9.2.js
function(username, options) {
      if ( this._containsCallbacks(options, ['yes', 'no']) ){
        options = this._generateCallbacks(options, {
          'isValidResult': function(result) {
            return result == username;
          },
          'yes': options['yes'],
          'no': options['no'],
          'error': options['no']
        });
        this.hasValidOAuth(options);
      } else {
        return username == this.getLoggedInUser(options);
      }
    }
function(username, options) {
      if ( this._containsCallbacks(options, ['yes', 'no']) ){
        options = this._generateCallbacks(options, {
          'isValidResult': function(result) {
            return result == username;
          },
          'yes': options['yes'],
          'no': options['no'],
          'error': options['no']
        });
        this.hasValidOAuth(options);
      } else {
        return username == this.getLoggedInUser(options);
      }
    }
function ( username , options ) { if ( this . _containsCallbacks ( options , [ 'yes' , 'no' ] ) ) { options = this . _generateCallbacks ( options , { 'isValidResult' : function ( result ) { return result == username ; } , 'yes' : options [ 'yes' ] , 'no' : options [ 'no' ] , 'error' : options [ 'no' ] } ) ; this . hasValidOAuth ( options ) ; } else { return username == this . getLoggedInUser ( options ) ; } }
Without specifying the 'options' argument, this is a "dumb" method in that simply checks if the given `username` is that of the logged in user without asking the server.

Optionally accepts asynchronous callback methods in the options object.  When provided, this method will renew the refresh token if required.
Without specifying the options argument this is a dumb method in that simply checks if the given username is that of the logged in user without asking the server .