PasswordStore: {
    getPassword(opts, fn, retryCount?): Promise<void>;
    setPassword(opts, fn): Promise<void>;
}

Basic keychain interface.

Type declaration

  • getPassword:function
    • Gets a password

      Parameters

      • opts: ProgramOpts

        cli level password options.

      • fn: ((error, password?) => void)

        function callback for password.

          • (error, password?): void
          • Parameters

            • error: Nullable<Error>
            • Optional password: string

            Returns void

      • Optional retryCount: number

        number of reties to get the password.

      Returns Promise<void>

  • setPassword:function
    • Sets a password.

      Parameters

      • opts: ProgramOpts

        cli level password options.

      • fn: ((error, contents?) => void)

        function callback for password.

          • (error, contents?): void
          • Parameters

            • error: Nullable<Error>
            • Optional contents: SecretContents

            Returns void

      Returns Promise<void>