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:
parent
049917a0a6
commit
7279662fcb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue