Hi!
I believe you need to use Strapi’s built-in sanitizeEntity() method on the data, just before you return a response, as described here:
It should remove any sensitive data like hashed passwords and private fields. Hope that helps!
Hi!
I believe you need to use Strapi’s built-in sanitizeEntity() method on the data, just before you return a response, as described here:
It should remove any sensitive data like hashed passwords and private fields. Hope that helps!