lib/auth.strategies/oauth/_oauthservices.js
function(requestParameters, next) {
    if(self.providerProvidesValidateNotReplayClient) {
      self.provider.validateNotReplayClient(requestParameters.oauth_consumer_key, requestParameters.oauth_token, requestParameters.oauth_timestamp, requestParameters.oauth_nonce, function(err, result) {
        if(err) {
          callback(new errors.OAuthUnauthorizedError('Invalid / used nonce'), null);
        } else {
          next();
        }
      });
    } else {
      self.provider.validateNotReplay(requestParameters.oauth_token, requestParameters.oauth_timestamp, requestParameters.oauth_nonce, function(err, result) {
        if(err) {
          callback(new errors.OAuthUnauthorizedError('Invalid / used nonce'), null);
        } else {
          next();
        }
      });
    }
  }
function(requestParameters, next) {
    if(self.providerProvidesValidateNotReplayClient) {
      self.provider.validateNotReplayClient(requestParameters.oauth_consumer_key, requestParameters.oauth_token, requestParameters.oauth_timestamp, requestParameters.oauth_nonce, function(err, result) {
        if(err) {
          callback(new errors.OAuthUnauthorizedError('Invalid / used nonce'), null);
        } else {
          next();
        }
      });
    } else {
      self.provider.validateNotReplay(requestParameters.oauth_token, requestParameters.oauth_timestamp, requestParameters.oauth_nonce, function(err, result) {
        if(err) {
          callback(new errors.OAuthUnauthorizedError('Invalid / used nonce'), null);
        } else {
          next();
        }
      });
    }
  }
function ( requestParameters , next ) { if ( self . providerProvidesValidateNotReplayClient ) { self . provider . validateNotReplayClient ( requestParameters . oauth_consumer_key , requestParameters . oauth_token , requestParameters . oauth_timestamp , requestParameters . oauth_nonce , function ( err , result ) { if ( err ) { callback ( new errors . OAuthUnauthorizedError ( 'Invalid / used nonce' ) , null ) ; } else { next ( ) ; } } ) ; } else { self . provider . validateNotReplay ( requestParameters . oauth_token , requestParameters . oauth_timestamp , requestParameters . oauth_nonce , function ( err , result ) { if ( err ) { callback ( new errors . OAuthUnauthorizedError ( 'Invalid / used nonce' ) , null ) ; } else { next ( ) ; } } ) ; } }
Given all the requestParameters and the next step function, error out if the a replay is detected
Given all the requestParameters and the next step function error out if the a replay is detected