usefulteam / jwt-auth

WordPress JSON Web Token Authentication
https://wordpress.org/plugins/jwt-auth/
124 stars 50 forks source link

using wp error object on failure #13

Closed beshoydawood closed 3 years ago

beshoydawood commented 4 years ago
contactjavas commented 4 years ago

Thanks for your time and effort @BeSquares :) The usage of WP_REST_Response for those error responses were intentional.

It was using WP_Error object when i started from @Tmeister's wp-api-jwt-auth. I think i wouldn't switch back to it.

beshoydawood commented 4 years ago

no worries, I didn't notice you fixed the status code issue here, Please update the WordPress plugin I am depending on your plugin for my app and I don't really like the idea of packing your plugin with it