Backend for MIHU focusing on secure authentication with OTP verification and user profile customization.
Role: Backend Developer
Technology Used: Node.js, Express.js, MongoDB, JWT
Key Features:
1: Authentication Module
Email OTP
Verification via OTP sent to user’s email for secure access.
2: Profile Management
Custom Social Links
Add and manage social media links for branding.
Logo Upload
Upload a custom logo for user profiles.
Challenges: Ensuring that OTPs (One-Time Passwords) are both generated and verified securely. This includes generating unique OTPs, setting expiration times, and preventing reuse to minimize security risks. Additionally, the challenge includes handling situations where users may request multiple OTPs in a short timeframe.Allowing users to update and manage their social media links in real-time without impacting performance or requiring additional backend intervention. This involves designing a flexible data structure and implementing efficient update methods to handle user-specific link management.
Solution: Leveraging Node.js provides a scalable environment for handling authentication processes and user management efficiently. Node.js is ideal for real-time applications, enabling quick data handling and responsive API services.MongoDB's document-oriented structure supports dynamic data needs, such as user-specific fields for social media links and branding information. MongoDB’s schema-less nature also allows for flexible modifications as the project grows.
Results: With secure OTP validation, users benefit from a safer, two-factor authentication experience that helps protect against unauthorized access.Users can personalize their profiles by adding logos and social media links, creating a unique and professional online presence.
Learnings: Working through the OTP verification process improved knowledge of secure authentication flows and error handling.Gained insights into securing user data, especially in the context of link updates and personal branding data, as well as managing expiration for time-sensitive tokens.
Future Improvements: Adding a customizable hero section and additional branding sections will allow users to create a more engaging experience. This feature would include options for uploading custom backgrounds, headings, and descriptions for a personalized touch.Including more layout control for sections like About, Testimonials, or Services would empower users to build a profile page more aligned with their brand.