I just want to know how to implement 2FA (HOTP/TOTP) in NodeJS without using libraries.
## references
1. RFC 4226 (HOTP) https://datatracker.ietf.org/doc/html/rfc4226
2. RFC 6238 (TOTP) https://datatracker.ietf.org/doc/html/rfc6238
I just want to know how to implement 2FA (HOTP/TOTP) in NodeJS without using libraries.
## references
1. RFC 4226 (HOTP) https://datatracker.ietf.org/doc/html/rfc4226
2. RFC 6238 (TOTP) https://datatracker.ietf.org/doc/html/rfc6238