Comments (12)
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:
Try opening Keychain Access.app. Right-click on the
login
keychain and try locking it and then unlocking it again.
from node-keytar.
I have this problem after I upgraded to macOS High Sierra 10.13.1 (17B48)
from node-keytar.
@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.
from node-keytar.
@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 😓. I could not log in to Desktop after upgraded to macOS High Sierra, every time I try, " The user name or passphrase you entered is not correct." just popped up. Do you have any idea what should I do for this? thank you very much!
from node-keytar.
@dhleong do you have the snippet for how you're invoking setPassword
and then getPassword
to trigger the failure (feel free to obscure the password field, obvs)? Maybe we're doing something with the service
or account
string in one code path that's not done in the other...
from node-keytar.
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;
}
_serialize()
here just JSON.stringify()
s a JSON object.
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 node-keychain
right now).
from node-keytar.
@dhleong unfortunately my error is easier to explain - a stale account in the app without anything in the keychain, so it fails as expected.
from node-keytar.
@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.
from node-keytar.
The same problem in HSierra. Any solutions?
from node-keytar.
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!!!
from node-keytar.
@shiftkey hero of the day! (for me MySQLWorkbench failed to change db password after update to High Sierra)
from node-keytar.
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 keytar
.
from node-keytar.
Related Issues (20)
- Prebuild problem on Windows HOT 1
- Not being able to install on Windows. v8.h missing
- electron-rebuild fails after updating keytar to 7.7.0
- WSL Support
- Upgrade dependencies' major versions HOT 7
- https://www.instagram.com/p/CaAP2_VsEFp/?utm_medium=copy_linkc
- [win] handle different value for cred.Persist = CRED_PERSIST_ENTERPRISE;
- [Windows] Old credential comes back after current one is deleted HOT 3
- Keytar installation fails on Alpine Linux (Docker image) HOT 1
- Switch to prebuildify & node-gyp-build HOT 2
- Proposal: Support buffers for binary keychain data
- Not attempting prebuilt install
- setPassword error
- Add a new setPasswordDescription method
- Opt out from having the service name implicitly be concatenated with the account name on windows.
- Setting a password throws strange Error: �ڴ���Դ���㣬�����������” HOT 2
- `FindCredentials` call on Linux without unlocking the key store crashes
- Fails to install on Windows ARM
- Node
- Farewell, my dear Keytar
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-keytar.