Skip to content

Added user authentication with email and password#46

Open
whlpatricia wants to merge 8 commits intomainfrom
backend/user_auth
Open

Added user authentication with email and password#46
whlpatricia wants to merge 8 commits intomainfrom
backend/user_auth

Conversation

@whlpatricia
Copy link

Added user authentication with email and password. For now the tmp page displays the user token when signed in successfully.
{9D6269CA-8093-4745-A70E-E7832EF0B0A0}

@vercel
Copy link

vercel bot commented Nov 22, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
trcc Ignored Ignored Preview Jan 31, 2026 5:41pm

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements user authentication with email and password using Supabase, adding sign-in, sign-up, and email confirmation flows. However, there are several critical issues that need to be addressed, including incorrect file naming for Next.js middleware, incorrect import paths, missing error pages, and security vulnerabilities.

Key Changes

  • Added Supabase authentication functions for email/password sign-up and sign-in
  • Created a temporary login page with forms for testing authentication
  • Implemented email confirmation route handler for Supabase OTP verification
  • Added middleware (incorrectly named as proxy.ts) for session management and route protection

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
src/proxy.ts Middleware entry point with incorrect naming and import path - should be middleware.ts
src/lib/client/supabase/proxy.ts Session management middleware logic for protecting routes
src/lib/client/supabase/client.ts Browser client initialization for Supabase
src/lib/client/supabase/auth.ts Authentication functions for email/password sign-up and sign-in
src/app/login/page.tsx Temporary UI for testing authentication flows
src/app/auth/confirm/route.ts Email confirmation handler with open redirect vulnerability

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@LeandroHamaguchi LeandroHamaguchi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was one of the hardest tickets, and overall, great work Patricia!

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.

BE 2 - Implement User Authentication with Email + Password

3 participants