Express PostgreSQL API


I’m building a fullstack app using reactJS, redux toolkit, express and to store my data posgreSQL.
When i test my api using postman, everything works perfectly. the data that i expect is being stored in my database but when i pass data from my client to my backend, i get an error (password and salt arguments required) what am i doing wrong ?

on my client side when i input credentials, i get an object where all inputs are defiened. when i log request.body.password it shows undefined.

i’m using express.json() and express.urlencoded extended: true to parse my data but the error persists. what i’m i doing wrong ?

here’s my POST request handler.

i replaced data with body (line 9) on my POST handler but the error still persists.