What it does

A simple web application developed to showcase the usage of 2 factor authentication. There are 3 main endpoints.

  1. Register - Used to register a new account. Once registered the user would then receive an otp to the phone number that was specified when registering.
  2. Verify OTP - Used to verify a given user. Providing an invalid OTP would result in an error. When the correct OTP is provided, the user would be verified and provided with jwt token.
  3. Get protected resource - Used to obtain the protected resouce. In order to access this resource, the user must be a) verified and b) provide a valid jwt token.

How I built it

Built using nodejs, express, mongodb and twilio sdk.

Share this project:

Updates

Submission history