A 2FA Code generator in javascript
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/umeow0716/2fa-js/2fa.js"></script>
<script>
TwoFA.gen("YOUR_2FA_SECRET").then(token =>
console.log(token) //XXXXXX
)
</script>
https://github.com/jeremyscalpello/node-2fa