{"id":20435160,"url":"https://github.com/nailwal08/otp-validation-using-next.js","last_synced_at":"2026-05-05T17:32:47.755Z","repository":{"id":240874999,"uuid":"803660599","full_name":"nailwal08/otp-validation-using-next.js","owner":"nailwal08","description":"This project demonstrates a simple OTP (One-Time Password) generator and validator using Next.js and MongoDB.","archived":false,"fork":false,"pushed_at":"2024-05-21T07:18:55.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T15:02:30.877Z","etag":null,"topics":["api","backend","mongodb","nextjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nailwal08.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-21T06:39:59.000Z","updated_at":"2024-05-21T07:19:48.000Z","dependencies_parsed_at":"2024-05-21T08:07:06.995Z","dependency_job_id":null,"html_url":"https://github.com/nailwal08/otp-validation-using-next.js","commit_stats":null,"previous_names":["nailwal08/otp-validation-using-next.js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nailwal08/otp-validation-using-next.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nailwal08%2Fotp-validation-using-next.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nailwal08%2Fotp-validation-using-next.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nailwal08%2Fotp-validation-using-next.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nailwal08%2Fotp-validation-using-next.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nailwal08","download_url":"https://codeload.github.com/nailwal08/otp-validation-using-next.js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nailwal08%2Fotp-validation-using-next.js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32660297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","backend","mongodb","nextjs"],"created_at":"2024-11-15T08:32:01.494Z","updated_at":"2026-05-05T17:32:47.737Z","avatar_url":"https://github.com/nailwal08.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# otp-validation-using-next.js\n\nThis project demonstrates a simple OTP (One-Time Password) generator and validator using Next.js and MongoDB. The application allows users to generate an OTP which is stored in a MongoDB database, and then validate the OTP through an API. For additional features you can add nodemailer to this project and share your email and password so that user can get the OTP through mail.\n\n## Features\n\n- Generate a 6-digit OTP for a given email address. (length of the OTP can be modified as per requirments.)\n- Store the OTP in MongoDB with an expiration time of 5 minutes.\n- Validate the OTP for a given email address.\n\n## Technologies Used\n\n- Next.js\n- MongoDB\n- Mongoose\n- Crypto\n\n## Getting Started\n\n### Prerequisites\n\nMake sure you have the following installed:\n\n- Node.js\n- MongoDB\n\n### Installation\n\n   ```bash\n.\n├── middleware\n│   └── mongodb.js     # MongoDB connection setup\n├── models\n│   └── Otp.js         # Mongoose schema for OTP\n├── pages\n│   ├── api\n│   │   ├── generateotp.js   # API route to generate OTP\n│   │   └── validateotp.js   # API route to validate OTP\n│   └── otp.js       # Frontend interface\n|\n├── package.json\n└── README.md\n\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnailwal08%2Fotp-validation-using-next.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnailwal08%2Fotp-validation-using-next.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnailwal08%2Fotp-validation-using-next.js/lists"}