DEV Community

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

Collapse
 
ukenpachi profile image
ukenpachi

hi, the TOTP example is not complete because you are calling a method called getTOTPCounter() however you have not defined this method anywhere in your example. Please can you share the full example? Thank you

Collapse
 
al_khovansky profile image
Alexander Khovansky

Hi! You can find the full example on Github in the article demo repo. The function you are looking for is defined here: github.com/khovansky-al/web-otp-de...