DEV Community

Discussion on: Generating 2FA One-Time Passwords in JS Using Web Crypto API

Collapse
 
tmikaeld profile image
Mikael D • Edited

This article is freaking awesome! However, I see no QR code in the demo - only an icon/button and if i click it, it wants me to share my screen :-o

Screenshot

Collapse
 
al_khovansky profile image
Alexander Khovansky

Thanks!
Yes, the demo only scans QR codes, not generates them. I have linked the FreeOTP tool in the article that you can use to generate the QR code. You can then use this demo to let the screen sharing API access the page with QR code and that will in turn scan the QR code and give you a OTP. Hope this helps!