Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ refactor: Updated JWT middleware to align with changed payload key…
… from 'user_id' to 'id This commit implements necessary modifications to the JWT authentication middleware to accommodate the recent change in the JWT payload structure, where the key has been updated from 'user_id' to 'id'. The adjustment ensures that the middleware accurately verifies token values against the updated key, maintaining the integrity and functionality of the authentication process. Key updates include revising the token parsing logic within the middleware to recognize the 'id' key, updating related unit tests to reflect the new payload structure, and ensuring backward compatibility where necessary. This change underscores our ongoing efforts to enhance code consistency and improve security measures across the application. Related issue: #210
- Loading branch information