doy / rbw

unofficial bitwarden cli
https://git.tozt.net/rbw
Other
611 stars 84 forks source link

[feature] Strip spaces from pinentry client_id and client_secret. #77

Open xPMo opened 2 years ago

xPMo commented 2 years ago

When copying the client_id and client_secret from the web vault, I triple-click on the text to select the full line. For some reason, this always gives me a leading space inserted before the actual secrets. This leads to a lot of headache trying to figure out why the copied text doesn't work. I spent a good 15 minutes trying different pinentry programs with or without the user. prefix, before finally checking the contents of the clipboard to notice the extra space.

Once I figured this out, I remembered that this is the second time this has happened to me, so I figured it's worth making an issue.

desttinghim commented 2 years ago

For those who are as slow as me, seeing this error:

$ rbw register
rbw register: failed to log in to bitwarden instance: incorrect api key

means you might have encountered this error.