"The user name or passphrase you entered is not correct." on macOS #76
Comments
|
@dhleong do you have the snippet for how you're invoking |
|
Wow, thanks for the quick response! I'm setting as an async function, like so: async saveCredentials(credentials) {
await keytar.setPassword(
this.service, this.account,
this._serialize(credentials)
);
return true;
}
Loading looks basically like: async loadCredentials() {
try {
const serialized = await keytar.getPassword(
this.service, this.account
);
return this._inflate(serialized);(The try is a fallback to |
|
@dhleong I think I've stumbled on the same issue over in Desktop (unable to retrieve the password where it was working fine previously) so I'm digging into that now. |
|
@dhleong unfortunately my error is easier to explain - a stale account in the app without anything in the keychain, so it fails as expected. |
|
@dhleong Hi, I google "The user name or passphrase you entered is not correct." and see your post. I am totally new in GitHub and not really understand what this thread is talking about |
|
@fujungao This is not a general support forum for OSX, but a place to report bugs with a specific tool used in programming. You're probably better off taking your Mac to an Apple Store, or posting on the Apple Support Community. |
|
I have this problem after I upgraded to macOS High Sierra 10.13.1 (17B48) |
|
The same problem in HSierra. Any solutions? |
|
One thing to look at is the Keychain itself - we had some reports of this in GitHub Desktop, and were somehow able to workaround it:
|
|
Thanks @shiftkey - just lost about an hour trying to sort this out after updating to High Sierra. After locking/unlocking in Keychain, works great!!! Thank you again, you are awesome!!! |
|
@shiftkey hero of the day! (for me MySQLWorkbench failed to change db password after update to High Sierra) |
|
I'm going to close this out as I continue to see reports of this being resolved in Keychain itself and it doesn't seem to be something we can control in |
Occasionally, keytar will return an error indicating that our login credentials are wrong, even though we've entered none. In such cases, the recommended fix is to lock and unlock the "login" keychain via Keychain Access, but that isn't working for me right now. See: atom/node-keytar#76 The `security` executable seems to work just fine, however....
Interestingly, writing a password via
setPasswordseems to work just fine, but attempting to then read it back throws an Error with no stack, and the message:Running macOS Sierra 10.12.6. No prompts for a password or anything appeared; it just immediately throws that error.
Using the
securitycli command as with thekeychainorxkeychainmodules seems to work just fine.The text was updated successfully, but these errors were encountered: