Skip to main content

Hooks

Index

Properties

optionalgetNpmAuthenticationHeader

getNpmAuthenticationHeader?: (currentHeader: undefined | string, registry: string, __namedParameters: { configuration: Configuration; ident?: Ident }) => Promise<undefined | string>

Type declaration

    • (currentHeader: undefined | string, registry: string, __namedParameters: { configuration: Configuration; ident?: Ident }): Promise<undefined | string>
    • Called when getting the authentication header for a request to the npm registry. You can use this mechanism to dynamically query a CLI for the credentials for a specific registry.


      Parameters

      • currentHeader: undefined | string
      • registry: string
      • __namedParameters: { configuration: Configuration; ident?: Ident }

      Returns Promise<undefined | string>