Google Authenticator Algorithm This is the code that Google Authenticator uses to generate otp codes. The default timer is 30 seconds. Setup npm i Test npm run test Enjoy!