0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00
verdaccio/packages/auth/test/partials/plugin/authenticate.fail.js

12 lines
328 B
JavaScript
Raw Normal View History

import { getInternalError } from '@verdaccio/commons-api';
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(getInternalError(), false);
},
};
};