This pull request introduces significant changes to the user authentication flow in the application, specifically within the signup and login process. The modifications aim to streamline user verification and enhance security through the implementation of JSON Web Tokens (JWT).
Summary
Replaced the user signup logic with user login logic in src/app/api/users/signup/route.ts.
Removed the dependency on the custom mailer utility for sending verification emails as part of the signup process.
Introduced JWT for user authentication, generating a token upon successful login.
Adjusted import paths to utilize absolute path aliases for better readability and maintainability.
Implemented password validation check against the hashed password stored in the database.
Upon successful login, the generated JWT is sent back to the client in a secure, HTTP-only cookie.
Improved error handling and response messages to provide clearer feedback to the client.
Environment variable TOKEN_SECRET is now required for JWT signing.
Fixes #5.
š Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
Description
This pull request introduces significant changes to the user authentication flow in the application, specifically within the signup and login process. The modifications aim to streamline user verification and enhance security through the implementation of JSON Web Tokens (JWT).
Summary
src/app/api/users/signup/route.ts
.TOKEN_SECRET
is now required for JWT signing.Fixes #5.
š Latest improvements to Sweep:
š” To get Sweep to edit this pull request, you can: