Skip to content

Conversation

@Shreyanshi210205
Copy link
Contributor

@Shreyanshi210205 Shreyanshi210205 commented Oct 22, 2025

Description

This pull request adds JWT-based authentication to the auth routes , including secure password hashing with bcrypt. It includes the following functionality:
1.Added register route (POST /api/auth/register)
-Validates input
-Hashes user passwords with bcrypt
-Stores new users in MongoDB
4.Added login route (POST /api/auth/login)
-Verifies email and password
-Generates and returns a JWT token

WhatsApp Image 2025-10-22 at 22 53 42_e8299c36
WhatsApp Image 2025-10-22 at 23 11 24_7d11eac4

Semver Changes

  • Patch (bug fix, no new features)
  • Minor (new features, no breaking changes)
  • Major (breaking changes)

Issues

#2

Checklist

@MD-IRFAN-RAJ
Copy link
Collaborator

@Shreyanshi210205

Thank you for your contribution!

We're hosting Opcode 2025, an open-source fest exclusively for college students, and we would love for you to be a part of it.

Website & Registration: opcode.gymkhana.iiitbh.ac.in

Join the Community: Be sure to join our Discord server to connect with other participants and stay up-to-date!

Important: To ensure your work is officially recognized on our fest leaderboard, we merge pull requests after you have registered. Please reply to this comment to let us know if you have registered or if you are not eligible to participate.

And great news – your contributions to this repository will also count towards Hacktoberfest!

Looking forward to seeing you at the fest!

@MD-IRFAN-RAJ MD-IRFAN-RAJ merged commit b59ea46 into OPCODE-Open-Spring-Fest:main Oct 23, 2025
10 of 14 checks passed
@MD-IRFAN-RAJ
Copy link
Collaborator

@all-contributors please add @MD-IRFAN-RAJ for code, doc

@MD-IRFAN-RAJ
Copy link
Collaborator

https://github.com/all-contributors please add @Shreyanshi210205 for code, doc

@MD-IRFAN-RAJ
Copy link
Collaborator

@all-contributors check

@allcontributors
Copy link
Contributor

@MD-IRFAN-RAJ

I could not determine your intention.

Basic usage: @all-contributors please add @Someone for code, doc and infra

For other usages see the documentation

@MD-IRFAN-RAJ
Copy link
Collaborator

@all-contributors please add @Shreyanshi210205 for code, doc and infra

@allcontributors
Copy link
Contributor

@MD-IRFAN-RAJ

I've put up a pull request to add @Shreyanshi210205! 🎉

@MD-IRFAN-RAJ
Copy link
Collaborator

@all-contributors please add @MD-IRFAN-RAJ for code, doc and infra

@allcontributors
Copy link
Contributor

@MD-IRFAN-RAJ

I've put up a pull request to add @MD-IRFAN-RAJ! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants