How to design a secure and scalable OTP-based login and signup system for production? #214707
Unanswered
BuildTheFuture01
asked this question in
Programming Help
Replies: 1 comment
|
Here is a production-tested pattern for Node.js + MySQL + Redis passwordless OTP auth, with extra care for healthcare sensitivity: 1. Unified Flow + No Account Enumeration
2. Storing & Verifying OTPs Safely in Redis
3. Sessions & Tokens for Mobile
4. Healthcare Caveat (SMS vs. Stronger Factors)
5. Production Readiness & Common Mistakes
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
Body
Background
We are currently developing a healthcare platform where patients can register and log in using their mobile phone numbers and OTP verification instead of traditional passwords.
Our planned backend technology stack includes:
Before finalizing our authentication architecture, we would like to understand how experienced developers approach passwordless authentication in real-world production systems.
Questions for the community
1. Login and Signup Architecture
2. OTP Security
3. Session and Token Management
4. Account Recovery and Identity Protection
5. Production Readiness
Objective
Our objective is to build a secure, reliable, scalable, and maintainable authentication system without introducing unnecessary complexity or negatively affecting the user experience.
We are particularly interested in understanding the reasoning behind architectural decisions, security trade-offs, and lessons learned from real-world production environments.
We would appreciate insights, recommendations, relevant documentation, and practical experiences from the developer community.
Looking forward to an open and constructive technical discussion.
Thank you!
Guidelines
All reactions