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

Resolved Authorization Token Issue and Added View Password Feature #5

Closed Dash10107 closed 2 weeks ago

Dash10107 commented 2 weeks ago

Authorization Token Issue:

The app was returning an "Authorization token required" error due to a typo in the middleware where "authorisation" was used instead of "authorization." The middleware has been updated to correctly check for "authorization," ensuring that users can add exercises without encountering token validation issues.

View Password Feature: To improve the user experience, a "View Password" option has been added to the login form. This allows users to toggle the visibility of their password while typing, making it easier to avoid typing mistakes and improve overall UX.

Changes Made: Fixed middleware typo to correctly validate the token. image

Added a "View Password" toggle feature to the login form. Minor UI improvements to ensure a smoother experience for users,like adding toastify to show errors. image

Testing: Token validation has been tested on routes requiring authorization to ensure users can add exercises without error. The "View Password" toggle has been tested across different browsers and devices for compatibility and ease of use. image image