volrath / password-store-otp.el

Emacs functions to interact with the pass-otp extension for pass
GNU General Public License v3.0
13 stars 9 forks source link

`password-store-otp-token-copy` failed for some websites on macOS #11

Open declantsien opened 2 years ago

declantsien commented 2 years ago

I've only experienced failing with gitlab and Discord.

Invalid two-factor code.

Works fine for other websites like github on macOS.

The otpauth: entry from password-store is correct cause it works on my thinkpad(linux) and iPhone

urugang commented 1 year ago

I also have this problem. I found that it appends a newline("\n"), and input has 7 characters, correct result should be 6 digit.

volrath commented 1 year ago

That could be the problem. I'm open to having a PR that fixes this, probably using string-trim on the output of the program should be enough.

urugang @.***> writes:

I also have this problem. I found that it appends a newline("\n"), and input has 7 characters, correct result should be 6 digit.

-- Reply to this email directly or view it on GitHub: https://github.com/volrath/password-store-otp.el/issues/11#issuecomment-1515559189 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

urugang commented 1 year ago

I thought it is a feature, most app recognized newline as a submit button, it's convenience. only some app like motion pro vpn receives newline as character input.