0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-13 22:48:31 -05:00
verdaccio/packages/auth/test/partials/plugin/authenticate.fail.js
Juan Picado 9f2a29a275 refactor: devDependencies strictly defined in each package (#1884)
* refactor: new babel preset

* chore: using pnpm

let's see how it goes, all seems works fine by far, pretty solid.
2021-04-09 17:54:11 +02:00

11 lines
324 B
JavaScript

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);
}
};
};