If you want to check out the project go here: link
This is a Next.js project bootstrapped with create-next-app
. To run this, you would
need to install both Node JS and Next JS.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.js
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Geist, a new font family for Vercel.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
First of all the OTP generation logic is based on current time and the IP address of the device accessing this web app. To run this, you need to install and set up Next JS
and download this repo and run the command npm run dev
in your command prompt after changing to the directory where you have saved this project.
- Make the frontend better using various styles and effects.
- Add a rate limiter to prevent brute-forcing of OTP
- Check whether the OTP generated is actually safe or not, i.e., check whether a scenario might occur when two people get the same OTP simultaneously. Improve the logic for that case.
- Add a QR code feature so it allows the OTP being displayed as a QR code and the receiver can scan QR codes and check whether OTP is valid or not.
- Suggest ways to make it even more secure by implementing 2-factor authentication like OTPs directly sent to email or even facial scan to check whether the same person who has received the OTP is entering it or not.