Build A 2FA Server With Kotlin and Ktor
This server provides a Two-factor Authentication (2FA) API using the Ktor framework, allowing desktop clients, mobile devices, and web applications to utilize two-factor authentication. The application is built in Kotlin and uses the Vonage API for 2FA functionality. The server includes two API endpoints: `verifyNumber` and `verifyCode`, which handle the verification process for phone numbers and verification codes respectively. The application uses JSON serialization and deserialization, and enables serializaton through the Ktor application configuration. The code is available on GitHub, along with additional tutorials and resources for further learning and implementation.
Company
Vonage
Date published
Jan. 20, 2021
Author(s)
Igor Wojda
Word count
1801
Language
English
Hacker News points
None found.