Skip to content

feat: implement authentication pages and route protection - #124

Merged
Xhristin3 merged 1 commit into
XStreamRollz:mainfrom
godwinameh:feature/auth-pages
May 16, 2026
Merged

feat: implement authentication pages and route protection#124
Xhristin3 merged 1 commit into
XStreamRollz:mainfrom
godwinameh:feature/auth-pages

Conversation

@godwinameh

Copy link
Copy Markdown
Contributor

"Implemented login and registration pages using Next.js App Router with client-side form validation via react-hook-form and Zod.

Added authentication API routes for login, registration, and logout handling. JWT tokens are now securely stored in httpOnly cookies to improve application security and prevent client-side token access.

Configured middleware to protect all /dashboard routes by redirecting unauthenticated users to the login page.

Also included:

  • Root layout configuration for App Router
  • Auth form structure and validation handling
  • Secure cookie management
  • Redirect flow after successful authentication
  • Logout endpoint with cookie cleanup
  • Initial dashboard route protection setup
  • Improved frontend authentication architecture and folder structure"

@Xhristin3
Xhristin3 merged commit f6242d9 into XStreamRollz:main May 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants