Replies: 2 comments
-
|
@tirth-patel06 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@ishitak12 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While running the project locally, authenticated API requests consistently fail with the following backend error:
JsonWebTokenError: jwt malformed
This error occurs inside the authentication middleware when attempting to verify the JWT token. As a result, protected routes do not function correctly even after a user successfully logs in or registers.
-Login/Register flow may appear successful on the frontend
-localStorage.getItem("token") sometimes returns undefined
-Authenticated API requests are sent without a valid JWT
-Backend throws JsonWebTokenError: jwt malformed
-Protected features fail:
1.Dashboard data loading
2.Medication status updates
3.Socket.IO authenticated connections
4.WebSocket connection errors also occur due to failed authentication
Beta Was this translation helpful? Give feedback.
All reactions