0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-17 23:45:29 -05:00

chore: fix type

This commit is contained in:
Juan Picado 2023-10-28 13:12:19 +02:00
parent dc3fb46f76
commit 8f9b094f6e

View file

@ -4,7 +4,7 @@ import _ from 'lodash';
import { createAnonymousRemoteUser, createRemoteUser } from '@verdaccio/config';
import { VerdaccioError, pluginUtils } from '@verdaccio/core';
import { aesEncryptDeprecated as aesEncrypt, signPayload } from '@verdaccio/signature';
import { aesEncryptDeprecated as aesEncrypt, signPayload, SignOptionsSignature } from '@verdaccio/signature';
import {
AllowAccess,
Callback,
@ -505,7 +505,7 @@ class Auth {
};
}
public async jwtEncrypt(user: RemoteUser, signOptions: JWTSignOptions): Promise<string> {
public async jwtEncrypt(user: RemoteUser, signOptions: SignOptionsSignature): Promise<string> {
const { real_groups, name, groups } = user;
const realGroupsValidated = _.isNil(real_groups) ? [] : real_groups;
const groupedGroups = _.isNil(groups)