modules/orionode/lib/metastore/mongodb/store.js
function(oauth, callback) {
		orionAccount.find({oauth: new RegExp("^" + oauth + "$", "m")}, function(err, user) {
			if (err) {
				return callback(err);
			}
			if (user && user.length) {
				return callback(null, user[0]);
			}
			return callback(null, null);
		});
	}
function(oauth, callback) {
		orionAccount.find({oauth: new RegExp("^" + oauth + "$", "m")}, function(err, user) {
			if (err) {
				return callback(err);
			}
			if (user && user.length) {
				return callback(null, user[0]);
			}
			return callback(null, null);
		});
	}
function ( oauth , callback ) { orionAccount . find ( { oauth : new RegExp ( "^" + oauth + "$" , "m" ) } , function ( err , user ) { if ( err ) { return callback ( err ) ; } if ( user && user . length ) { return callback ( null , user [ 0 ] ) ; } return callback ( null , null ) ; } ) ; }
returns the user with the given oauth token
returns the user with the given oauth token