0

I am using the Pyotp module in order to generate the TOTP code for multi-factor authentication. Is there any way to understand if the URL which I generate the QR code with is scanned by the user or not?

  • What does that have to do with Pyotp? As far as I understand, you're asking if a QR scan can be detected – Bharel Apr 27 '22 at 04:11
  • You can not check for the actual scan. But within the flow the user has to enter a valid code to finish the registration. This will only be possible after the shared secret is transferred (or with enormous luck). – Klaus D. Apr 27 '22 at 04:19
  • @KlausD. Thanks for your reply. Actually, I have done everything. I just want to know is there any way to implement this option? like the WhatsApp web app. As you know when you scan the TOTP code you would log in to your account automatically – Reza Kazemi Apr 27 '22 at 05:27
  • @Bharel, yes exactly. like the WhatsApp web app. As you know when you scan the TOTP code you would log in to your account automatically. – Reza Kazemi Apr 27 '22 at 05:28
  • That's the whatsapp app automatically entering the URL and a different backend notifying the web frontend that it entered. – Bharel Apr 27 '22 at 05:37
  • Please read the first sentence of my earlier comment again! – Klaus D. Apr 27 '22 at 07:08

0 Answers0