raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.28k stars 2.98k forks source link

[One Time Password] QR Code scan not working #12877

Closed noidwasavailable closed 1 month ago

noidwasavailable commented 3 months ago

Extension

https://www.raycast.com/lachero/one-time-password

Raycast Version

1.76.0

macOS Version

Sonoma 14.2

Description

QR Code scan is not working as intended.

I checked if screencapture is working as intended with both scan and select modes by running /usr/sbin/screencapture -xD 1 ~/Downloads/1.png and /usr/sbin/screencapture -xi ~/Downloads/1.png, but the extension says QR Code Detection Failed every time.

Steps To Reproduce

  1. Export Google Authenticator
  2. Move screenshots of the QR codes to the computer
  3. Open it on Preview
  4. Run "Scan a QR Code"

Current Behaviour

QR code detection failed

Expected Behaviour

Success!

raycastbot commented 3 months ago

Thank you for opening this issue!

🔔 @lacherogwu you might want to have a look.

💡 Author and Contributors commands The author and contributors of `lachero/one-time-password` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
noidwasavailable commented 3 months ago

I'll see if I have time to fork this repo and see what's internally the issue.

noidwasavailable commented 3 months ago

Looks like a jsqr issue, as the qr code cannot be read by the demo site they have up.

lacherogwu commented 3 months ago

Perheps the QR code is incorrect? are you able to share it here?

noidwasavailable commented 3 months ago

@lacherogwu Hi! Thanks for looking into it. I'm not sure how to, because I added codes that are 2fa codes for the accounts I actually use. I have tried

  1. doing it from cli using the script you linked in your extension description manually and that worked fine!
  2. scanning it with my iPhone camera to import the 2fa codes into Keychain and that worked fine as well!

So I don't think it's the QR code's issue.

noidwasavailable commented 3 months ago

For the meanwhile, I wrote a PR here: https://github.com/raycast/extensions/pull/12878 to allow for easier bulk importing from the cli output.

lacherogwu commented 3 months ago

Ok I understand you can't share your QR code, thanks for the contribution. I will check the issue & go through your PR

raycastbot commented 2 months ago

This issue has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊

raycastbot commented 1 month ago

This issue has been automatically closed due to inactivity.

Feel free to comment in the thread when you're ready to continue working on it 🙂

You can also catch us in Slack if you want to discuss this.