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

Description
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
- npm i keytar@^4
- keytar.setPassword('service', 'account', '1')
- npm i keytar@^7
- keytar.setPassword('service', 'account', '2')
- keytar.deletePassword('service', 'account')
- reboot computer
- 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