Giter Site home page Giter Site logo

Comments (12)

shiftkey avatar shiftkey commented on July 24, 2024 42

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.

yassermog avatar yassermog commented on July 24, 2024 7

I have this problem after I upgraded to macOS High Sierra 10.13.1 (17B48)

from node-keytar.

shiftkey avatar shiftkey commented on July 24, 2024 1

@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.

sundaynighteffect avatar sundaynighteffect commented on July 24, 2024 1

@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.

shiftkey avatar shiftkey commented on July 24, 2024

@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.

dhleong avatar dhleong commented on July 24, 2024

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.

shiftkey avatar shiftkey commented on July 24, 2024

@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.

dhleong avatar dhleong commented on July 24, 2024

@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.

mazzzai avatar mazzzai commented on July 24, 2024

The same problem in HSierra. Any solutions?

from node-keytar.

mfardig avatar mfardig commented on July 24, 2024

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.

hgoshko avatar hgoshko commented on July 24, 2024

@shiftkey hero of the day! (for me MySQLWorkbench failed to change db password after update to High Sierra)

from node-keytar.

shiftkey avatar shiftkey commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.