Company
Date Published
Author
Hui Jing Chen
Word count
2373
Language
English
Hacker News points
None

Summary

The application is a prototype that uses two-factor authentication (2FA) to track player progress in a game-like scenario. The 2FA system involves sending an SMS with a verification code to the player's phone number, which they must then enter into the application to authenticate their identity. The application uses Nexmo's Verify API and Messages API to handle the 2FA process. To trigger the OTP request, players submit their phone number via another web form submission. Once verified, the player is redirected to a results page where their status is displayed. Additional features can be added using Nexmo's Messages API, such as sending additional SMS containing links to verification pages. The application structure includes three main pages: login, administrator, and verification code entry pages. The application uses lowdb for storing player information and Koa.js for handling API requests and responses.