0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-10 23:39:31 -05:00
verdaccio/test/unit/partials/plugin/authenticate.fail.js

12 lines
322 B
JavaScript
Raw Normal View History

import { errorUtils } from '@verdaccio/core';
module.exports = function ( ) {
return {
authenticate( user, pass, callback ) {
// we return an 500 error, the second argument must be false.
// https://verdaccio.org/docs/en/dev-plugins#onerror
callback(errorUtils.getInternalError(), false);
}
};
};