akshitagupta15june / PetMe-Prod

PetMe-Prod is an all-in-one platform that allows animals to be adopted, donated to pet lovers, and provides emergency medical care to stray animals in need.
https://pet-me-prod-pet-me-frontend.vercel.app/
MIT License
16 stars 34 forks source link

Added signup and login route #71

Closed Yashgupta9330 closed 3 months ago

Yashgupta9330 commented 3 months ago

three route made 1) signup- Used jwt for token generation 2) otp-used nodemailer for sending otp in mail 2) login-on successfull login cookie will be sent which contain token data

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pet-me-prod-pet-me-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 17, 2024 8:33pm
cb7chaitanya commented 3 months ago

@Yashgupta9330 Will be reviewing it tomorrow

Yashgupta9330 commented 3 months ago

okk if any changes needed pls tell me i will change it

cb7chaitanya commented 3 months ago

Can you give me the req-res for the endpoints, and also 17 files changed, bro? @Yashgupta9330

Yashgupta9330 commented 3 months ago

1) otp route: http://localhost:3001/auth/otp { "email":"", } 2) signup route: http://localhost:3001/auth/signup { "first_name": "John", "last_name": "Doe", "email": "", "password": "", "address": "123 Main St", "city": "Anytown", "state": "Anystate", "country": "Country", "zip_code": "12345", "phone_number": "+1234956670", "otp":"" }

3) login route: http://localhost:3001/auth/login

{ "email":"", "password":"" }