This project implements one-time passcode (OTP) generation using open standards developed by Initiative for Open Authentication (OATH)
To convert your Raspberry Pi to a hadware security key two-factor authentication, read the guide here
git clone https://github.com/SkyTradeInc/Two-Factor-Authentication.git
cd Two-Factor-Authentication
npm i
Create a file named secrets.json
. This will contain our back-up secrets we receive when enabling two factor authentication
Example configuration file
[
{
"website": "Google",
"secret": "KNPHN3Q6IK5X9ZPY",
"email": "[email protected]"
},
{
"website": "Github",
"secret": "CRDJ6INNLA5CAMPP",
"email": "[email protected]"
}
]
node index
If there is no errors in your secrets.json
file, your OTP will display in your console
Front end implementation can be accessed on http://localhost:6060