-
-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camera does not work #276
Comments
Hi, Does it fail regardless of the qr code size? |
Sorry just to be clear, The camera does not even launch, which means it does not even allow me the opportunity to scan the QR code. A round circle just keeps spinning. Thanks |
Ok thx for the clarification. Do you see any error in the console tab of your browser dev tools? (F12) |
Yea I get no prompt to use the camera. I thought of this too, on my phone I granted full access to the camera in my settings. |
The following appears in my browser dev tools as an error only upon clicking add new code which the calls the camera.
|
Any update on this? This is a great tool however its kind of rendered it useless for me :( |
Lots of (pro) work these days, sorry for that. First, I think you're trying to use the camera while your 2FAuth instance is not on a secure connection. HTTPS is required for the mediaDevices API to work (see https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices#security_requirements) Next, your use case is not correctly handled by 2FAuth, the error is not caught and nothing is pushed to the user. Actually, 2FAuth freezes on the loader even with HTTPS when no camera are available. I'm going to push a fix 👍🏻 |
Excellent, thank you so much! |
Version
5.0.2
Details & Steps to reproduce
Install via Docker or compose and attempt to add 2FA vis scan.
Expectation
Camera to launch and allow scanning a 2FA code.
Tested in multiple browsers and on mobile devices.
Error & Logs
Execution environment
No response
Containerization
Additional information
No response
The text was updated successfully, but these errors were encountered: