0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-20 22:52:46 -05:00

fix: v4 compatible helpers

This commit is contained in:
Nicholas Hyatt 2019-02-12 17:32:50 -06:00
parent 049917a0a6
commit 7279662fcb

View file

@ -224,7 +224,7 @@ class Auth implements IAuth {
apiJWTmiddleware() {
const plugins = this.plugins.slice(0);
const helpers = {buildAnonymousUser, authenticatedUser};
const helpers = { createAnonymousRemoteUser, createRemoteUser };
for (const plugin of plugins) {
if (plugin.apiJWTmiddleware) {
return plugin.apiJWTmiddleware(helpers);