There are a few ways to create a two factor authentication in your application. Each website that has user register & login capability should have a two factor authentication for improved security. For Example if you have an Angular client and you want to validate each user who registers on your website then an email/mobile phone authentication is the way to go.
In this article we will cover email Two-Factor implementation with NodeJS server side, PostgreSQL DB running in a docker container, and Angular 9 client.
We need some kind of a mechanism that allows us to verify a user’s identity. The way to do it is to create a verification code that will be sent for each new user that registers to our website.
#nodejs #postgresql #docker #postgres