Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

[Windows] Old credential comes back after current one is deleted #455

@xsq007

Description

@xsq007

Prerequisites

Description

A value was set for some service/account for keytar 4.x. Then migrate keytar to 7.x and set another value for same service/account. Delete this service/account and the old value set in keytar-4.x came back after rebooting the computer.

Steps to Reproduce

  1. npm i keytar@^4
  2. keytar.setPassword('service', 'account', '1')
  3. npm i keytar@^7
  4. keytar.setPassword('service', 'account', '2')
  5. keytar.deletePassword('service', 'account')
  6. reboot computer
  7. Check Windows Credential Manager and service/account credential still exists and its value is 1.

Expected behavior:
There should be no service/account credential in Windows Credential Manager after calling deletePassword.

Actual behavior:
The old one set in keytar-4.x came back.

Reproduces how often:
Every time

Versions

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions