diff --git a/lib/index.d.ts b/lib/index.d.ts index e3aa044..dc4d47f 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -9,5 +9,5 @@ export default class FleetbaseAuthPlugin implements IPluginAuth { authenticate(identity: string, password: string, callback: Callback): Promise; adduser(identity: string, password: string, callback: Callback): Promise; allow_access(user: RemoteUser, pkg: (Config & PackageAccess) | (AllowAccess & PackageAccess), callback: AuthAccessCallback): Promise; - allow_publish(user: RemoteUser, pkg: PackageAccess, callback: Callback): Promise; + allow_publish(user: RemoteUser, pkg: (Config & PackageAccess) | (AllowAccess & PackageAccess), callback: Callback): Promise; } diff --git a/src/index.ts b/src/index.ts index 8a418b0..8a3d137 100644 --- a/src/index.ts +++ b/src/index.ts @@ -82,7 +82,7 @@ export default class FleetbaseAuthPlugin implements IPluginAuth { } } - public async allow_publish(user: RemoteUser, pkg: PackageAccess, callback: Callback): Promise { + public async allow_publish(user: RemoteUser, pkg: (Config & PackageAccess) | (AllowAccess & PackageAccess), callback: Callback): Promise { // Allow publish should check with Fleetbase API for the extension and check the status for approved // After publish registry should update the extension as published this.logger.debug({ user }, 'Auth::allow_publish() - User: @{user}');