Hi I am Akarsh Barar
This is a Project in which i have talked about two factor authentication using NodeJs and Express.
We have used speakeasy https://www.npmjs.com/package/speakeasy
and NodeJsonDB https://www.npmjs.com/package/node-json-db
You can use any type od DB that you want