You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can modify the error message you want to give from line 147 in the public/class-jwt-auth-public.php file. If you have specific messages for certain situations, you can use a structure like switch-case.
Context
I’m using JWT to authenticate users from my app, and everything works as expected.
Is there a way I can modify the error response message in /token API?
I tried jwt_auth_token_before_sign and jwt_auth_token_before_dispatch filters but these only works if the credentials are valid.
The text was updated successfully, but these errors were encountered: