๐Ÿ” Completed Authentication Flow for My Custom LMS โ€“ Dev Journal #1

Hello, devs!
This marks the first milestone in my journey of building a full-featured Learning Management System (LMS) from scratch using Next.js and a custom backend hosted on Azure. I’m documenting each major part as I build and today, Iโ€™m sharing t…


This content originally appeared on DEV Community and was authored by Isaac

Hello, devs!
This marks the first milestone in my journey of building a full-featured Learning Management System (LMS) from scratch using Next.js and a custom backend hosted on Azure. I'm documenting each major part as I build and today, Iโ€™m sharing the progress on the authentication system.

What I Built

This authentication flow is fully custom

- Admin & User Sign-up
- Login with Secure Password Hashing
- OTP Email Verification
- Password Reset with Secure Token
- Form Validations + Toast Notifications
- Protected API routes & token handling
- Responsive, animated UI

Tech Stack


- Frontend: Next.js (App Router) + TailwindCSS + ShadCN UI
- State & Feedback: React Hooks + Sonner for toast notifications
- Form Validation: Zod + React Hook Form

Screenshots

Sign Up Screen

Sign Up screen

Sign In Screen

Admin Login Screen

Admin Reset Password Screen

Admin Password Reset Screen

What I Learned

- Managing useEffect properly during token validation
- Keeping forms clean, accessible, and user-friendly
- Structuring reusable API utilities for all auth actions
- Managing params in dynamic [token].tsx routes in Next.js App Router

Next Steps

Now that authentication is done, I'm moving to:


- Dashboard layout with protected routes
- Track/course management

Thanks for reading!
๐Ÿ”— Follow me to see the next update on dashboards, course creation and more.


This content originally appeared on DEV Community and was authored by Isaac


Print Share Comment Cite Upload Translate Updates
APA

Isaac | Sciencx (2025-07-19T14:42:40+00:00) ๐Ÿ” Completed Authentication Flow for My Custom LMS โ€“ Dev Journal #1. Retrieved from https://www.scien.cx/2025/07/19/%f0%9f%94%90-completed-authentication-flow-for-my-custom-lms-dev-journal-1/

MLA
" » ๐Ÿ” Completed Authentication Flow for My Custom LMS โ€“ Dev Journal #1." Isaac | Sciencx - Saturday July 19, 2025, https://www.scien.cx/2025/07/19/%f0%9f%94%90-completed-authentication-flow-for-my-custom-lms-dev-journal-1/
HARVARD
Isaac | Sciencx Saturday July 19, 2025 » ๐Ÿ” Completed Authentication Flow for My Custom LMS โ€“ Dev Journal #1., viewed ,<https://www.scien.cx/2025/07/19/%f0%9f%94%90-completed-authentication-flow-for-my-custom-lms-dev-journal-1/>
VANCOUVER
Isaac | Sciencx - » ๐Ÿ” Completed Authentication Flow for My Custom LMS โ€“ Dev Journal #1. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/07/19/%f0%9f%94%90-completed-authentication-flow-for-my-custom-lms-dev-journal-1/
CHICAGO
" » ๐Ÿ” Completed Authentication Flow for My Custom LMS โ€“ Dev Journal #1." Isaac | Sciencx - Accessed . https://www.scien.cx/2025/07/19/%f0%9f%94%90-completed-authentication-flow-for-my-custom-lms-dev-journal-1/
IEEE
" » ๐Ÿ” Completed Authentication Flow for My Custom LMS โ€“ Dev Journal #1." Isaac | Sciencx [Online]. Available: https://www.scien.cx/2025/07/19/%f0%9f%94%90-completed-authentication-flow-for-my-custom-lms-dev-journal-1/. [Accessed: ]
rf:citation
» ๐Ÿ” Completed Authentication Flow for My Custom LMS โ€“ Dev Journal #1 | Isaac | Sciencx | https://www.scien.cx/2025/07/19/%f0%9f%94%90-completed-authentication-flow-for-my-custom-lms-dev-journal-1/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.