Results comments of sapiente

Because i run into same problem, i used little bit different solution ``` try { $data = JWT::decode($accessToken); } catch (ExpiredException $e) { \Firebase\JWT\JWT::$timestamp = 0; $data = JWT::decode($accessToken); }...

Agree, it's simple, but common attack. https://www.owasp.org/index.php/Mass_Assignment_Cheat_Sheet#NodeJS_.2B_Mongoose Here is one solution, but I would rather have it inside express-validator.

Ok, but Imagine, that you have request [POST] with 5 params for user registration. When you validate request, you need to pass it to model and store. What will you...