Skip to content

Conversation

@kartikey004
Copy link

Fix: Authentication and Transaction Validation Issues

…lidation issues, adjusted the JWT payload extraction in auth.js to correctly identify the user ID and then aligned transaction field names in cotisationController.js to match the TransactionSchema.
Fix: Authentication and Transaction Creation Flow

This commit resolves issues with user authentication by correctly parsing the user ID from the JWT payload in `auth.js`. It also fixes transaction creation by aligning field names (e.g., `creePar`, `cotisationLiee`) in `cotisationController.js` to perfectly match the `Transaction` schema.
```
@kartikey004 kartikey004 changed the title fix: resolve JWT auth decoding and transaction schema validation errors #2 fix: resolve JWT auth decoding and transaction schema validation errors Jun 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant