Skip to main content
December 3, 2022
Question

"QR code Detection Failed" message attempting to scan QR

  • December 3, 2022
  • 47 replies
  • 26375 views

In 1Password app, I am trying to enable MFA for a site

I select the "Scan QR Code" button and I get this message

Note that I have allowed screen recording permissions


1Password Version: 1Password for Mac 8.9.8 (80908009)
Extension Version: 2.4.1
OS Version: macOS Monterey 12.6.1
Browser:_ Safari

47 replies

February 3, 2023

@1P_Dave I came to the forums to resolve this product issue so that others may benefit. I'm not super interested in having secret email correspondence. The diagnostics output was not necessary in order to tell me whether this product feature is claimed to function currently or not.

1P_Dave
1Password Employee
February 3, 2023

@the_actual_jlamoree

That's fair enough, the diagnostics report would help narrow down on the issue that's occurring on your Mac but I can still investigate as far as possible here on the forums. To answer your initial question:

I am very interested to know if this feature is functional under any circumstance.

Yes, this feature should be working. I just took a screenshot of the 2FA QR code for my ProtonMail account and opened it on my Mac using the Preview app. 1Password 8 for Mac was then able to detect and save the one-time password from the QR code.

Our developers do have an internal work item open that might be relevant to the issue. Can you tell me if you've tried to use 1Password 8 for Mac to save the one-time password for an account by displaying the original QR code on that website in the browser and not by displaying the extracted QR code from OTP Auth (or by opening the QR code that you extracted from OTP Auth in the browser)?

-Dave

ref: dev/core/core#19783

February 4, 2023

@1P_Dave Yes, adding TOTP to 1Password when the QR code is presented in the browser window works properly, for the single test case I performed using hover.com. When the QR code image from Hover was displayed in a browser page modal, I clicked the QR code import button on the record being edited in the 1Password for Mac application. That all worked as expected.

However, having OTP Auth show that same QR code baffled 1Password. The actual code content in these two situations was different. For the one in the browser that 1Password "saw" the content was otpauth://totp/Hover:jlamoree?secret=sdm2lnkgly6e5nux75pmnn5fhi&issuer=Hover but when OTP Auth generated the QR code, the content was otpauth://totp/Hover:jlamoree?secret=SDM2LNKGLY6E5NUX75PMNN5FHI======&issuer=Hover&digits=6&period=30&algorithm=SHA1.

It's my belief that 1Password for Mac has no problem seeing QR codes on the screen, but rather that the parser does not like the content that it saw. Perhaps 1Password is angry because the secret is padded or that config fluff was added to the query string.

I suspect the mechanism for parsing the text content of the QR code differs when 1Password is running in iOS vs. macOS, since 1Password for iOS doesn't have a problem importing QR codes from OTP Auth when I aim my iPhone's camera at the desktop display.

February 5, 2023

In order to complete this transition from OTP Auth to 1Password, I created a utility that would look for QR codes and show the content: https://github.com/jlamoree/qr

The Apple Shortcut feeds a screenshot into a Python script in a Docker container and shows the decoded content of any QR codes found. Using it, I completed the data transfer without too much pain. None of the visible OTP Auth QR codes were importable directly by 1Password using the "Scan QR code from clipboard or screen" button. The issue is not secret padding as previously suggested.

ElijahLynn
June 28, 2023

I'm seeing this issue too. I just migrated from Chrome to Brave browser and getting this error too. Works fine with Chrome, but not Brave. I tried toggling 1Password off/on in the Mac Privacy and Security "Screen Recording" section.

It is something to do with Brave.

Brave 1.52.126 Chromium: 114.0.5735.133 (Official Build) (arm64)
Revision fbfa2ce68d01b2201d8c667c2e73f648a61c4f4a-refs/branch-heads/5735@{#1270}
OS macOS Version 13.4.1 (Build 22F82)
JavaScript V8 11.4.183.23

ElijahLynn
June 28, 2023

Got it working per https://1password.community/discussion/comment/646827/#Comment_646827

If i zoomed in on the QR page once ( just ⌘+) the "Scan QR" from the 1Password Desktop App worked

I didn't think it would but tried it by reverse-pinching the trackpad and centering it and then 1Password grabbed it.

1P_Dave
1Password Employee
June 29, 2023

@ElijahLynn

I'm happy that you were able to find a workaround for the issue. Are you able to provide the website address or app name where the issue is occurring in your case? I can pass that along to our development team so that they can investigate further.

-Dave

September 4, 2023

I also cannot add OTP to 1Password 8 on Mac OS desktop, for https://expo.dev . It gives the same errors as described in this thread, originated 9 months ago. Is there a bug status page where I can track the status of this bug? I provided a report as described, but no response.

-Tim

1P_Dave
1Password Employee
September 5, 2023

@timheilman

Thank you for sending in the diagnostics report. I can confirm that the team has received it and that you'll receive another reply via email as soon as possible.

Is there a bug status page where I can track the status of this bug? I provided a report as described, but no response.

When, and if, the issue is resolved you'll see the bug fix noted in our release notes: 1Password Releases

For the time being the best workaround, if you're unable to use the desktop app to scan the QR code on a particular website, is to use the browser extension instead: Use 1Password as an authenticator for sites with two-factor authentication

-Dave

ref: LDX-94585-796

September 14, 2023

It seems that ElijahLynn's recommendation of Zooming in once, will allow 1Password to see the QR code. Just tested it on a few sites that previously did not work. Must be a resolution based issue.