/**
 * Module dependencies.
 */
var TokenError = require('./tokenerror');

/**
 * `TokenError` error.
 *
 * @api public
 */
function MFARequiredError(message, uri, user) {
  TokenError.call(this, message, 'mfa_required', uri);
  Error.captureStackTrace(this, arguments.callee);
  this.name = 'MFARequiredError';
  this.user = user;
}

/**
 * Inherit from `TokenError`.
 */
MFARequiredError.prototype.__proto__ = TokenError.prototype;


/**
 * Expose `MFARequiredError`.
 */
module.exports = MFARequiredError;

@@ -161,16 +161,22 @@
 ri, user
+, areq
 ) %7B%0A  To
@@ -331,16 +331,35 @@
 = user;%0A
+  this.req = areq;%0A
 %7D%0A%0A/**%0A 

Add request to MFA error for keeping session context.