feat(auth): add otp authentication flow#77
Conversation
|
@deep-xu is attempting to deploy a commit to the prabhakarshukla's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Hi @prabhakarshukla, I have implemented the OTP authentication flow. Kindly review the changes and merge the PR if everything looks good... |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@deep-xu ok will merge the till evening after reviewing it |
|
hey @deep-xu i was checking your pr while running the website locally |
|
@deep-xu I personally don't think an OTP based-authentication is required. It just adds more friction. |
|
It should be that if the user can't remember their password, they have the option to login via OTP, but using password + OTP everytime is just adding friction |
|
Yeah okay 👍 I’ll check it and make sure that if the user can’t remember their password, they have the option to log in via OTP... |
ig otp will be helpful if someone forgets the password |
|
@deep-xu have u updated the PR?? |
|
Hi @prabhakarshukla, I have implemented the OTP-based password recovery flow. If a user forgets their password, they can now verify their identity using an OTP sent to their registered email address and securely reset their password... |
|
Hi @deep-xu Thank you for the contribution. While reviewing and testing the PR, I found that the build is currently failing due to TypeScript errors. Current Issues
I tried fixing the issues myself as a maintainer, but there seem to be some branch/PR synchronization issues on my side, so I'm unable to reliably push the fixes directly to your PR branch. RequestPlease review the above issues, apply the necessary fixes, and make sure the project builds successfully before requesting another review. Kindly run: npm run buildlocally and verify that the build completes without any TypeScript or compilation errors. Once the build passes and the fixes are pushed, I'll review the PR again. |
|
Hi @prabhakarshukla, can you check once.. |
brother |
|
The Vercel build is failing due to an unresolved Git merge conflict inside lib/supabase.ts. <<<<<<< HEAD
Because of this, Turbopack cannot parse the file, and the build is breaking.
Delete everything like: <<<<<<< HEAD
Ensure Supabase client initialization is clean, for example: const supabase = supabaseConfig export { supabase }; Verify locally (important) Run: Make sure it passes before pushing.
|
|
@deep-xu updates??? |
fix #74
🚀 Overview
This PR implements a hybrid authentication system using Supabase where users must complete both password authentication and OTP-based email verification.
The system ensures stronger security by combining traditional password login with an additional OTP verification step.
✨ Changes Made
🔐 Authentication Flow
Authentication now requires both steps:
📸 Screenshots
🔹 Signup Page
🔹 OTP Verification Screen
🧪 How to Test
📌 Notes