Skip to content

@verdaccio/core


Interface: IBasicAuth

Methods

add_user()

ts
add_user(
   user, 
   password, 
   cb): any;

Parameters

ParameterType
userstring
passwordstring
cbFunction

Returns

any


allow_access()

ts
allow_access(
   pkg, 
   user, 
   callback): void;

Parameters

ParameterType
pkgAuthPluginPackage
userRemoteUser
callbackFunction

Returns

void


authenticate()

ts
authenticate(
   user, 
   password, 
   cb): void;

Parameters

ParameterType
userstring
passwordstring
cbFunction

Returns

void


changePassword()

ts
changePassword(
   user, 
   password, 
   newPassword, 
   cb): void;

Parameters

ParameterType
userstring
passwordstring
newPasswordstring
cbFunction

Returns

void


invalidateToken()?

ts
optional invalidateToken(token): Promise<void>;

Parameters

ParameterType
tokenstring

Returns

Promise<void>

Released under the MIT License.