2FA Mobile is used to generate OTPs for 2FA-enabled resources
QR codes for the testing can be generated with 2FA Generator
2FA Backend application: https://github.com/peterdee/2fa-backend
2FA Generator application: https://github.com/peterdee/2fa-generator
2FA WEB application: https://github.com/peterdee/2fa-web
Application requires an access to the camera in order to be able to scan the QR code
git clone https://github.com/peterdee/2fa-mobile
cd ./2fa-mobile
nvm use 16
npm i
The .env
file is required, see .env.example for details
The backend-url.ts
file in the constants
directory is also required, it can be automatically generated if the project is launched with npm start
, or it can be manually created, see backend-url.example.ts for details
Launch development server:
npm start
Launch on Android emulator:
npm run android
Launch on iOS emulator:
npm run ios