Morning @pixael,
I just tried using the code you added and I’m still unable to replicate. I’m using two ways to login (I’m not that familiar with the JWT plugin):
/?rest_route=/simple-jwt-login/v1/auth&email=XX&password=XX
/wp-json/wp/v2/users
For /wp-json/
I am using Basic Authentication with an Application Password from WordPress’s Edit User screen.
Both ways authenticate me successfully. JWT returns a token and /wp-json/ shows me all the users on the system.
I’ve searched online and it seems the hook wp_login
is not fired for native REST API calls however, the JWT plugin has a reference to the hook in their code. I think I may be using the wrong JWT login URL/method to login. Could you share with me your login flow (minus any sensitive data)?
Any help is appreciated,
Sully