techcsispit / MERN-Auth-Workouts-App

This Workouts App is a full-stack CRUD application built using the MERN stack (MongoDB, Express, React, Node.js) with authentication implemented using Bcrypt and JWT. The app allows users to create, update, view, and delete workouts once they are authenticated. Contributions are welcome to improve styling, fix bugs, and add features.
0 stars 2 forks source link

Inconsistent JWT Secret Variable Naming #1

Closed Dash10107 closed 2 weeks ago

Dash10107 commented 3 weeks ago

The JWT secret is defined as JWT_SECRET in the .env file, but the variable used throughout the code is SECRET. This inconsistency can cause confusion.

The given convention according to the Readme.md image

The naming convention used in code image image

This issue can cause people to face errors while trying to login or signup on the app.

Action Required Change all instances of SECRET to JWT_SECRET in the codebase for consistency.

Dash10107 commented 3 weeks ago

I would like to work on this issue

techcsispit commented 3 weeks ago

Assigned to you!