I want to use the remainder API to take a username and a password despatched in a request and use it in wp_authenticate() then ship again if the credentials have been right. How would I do that.
use WordPress REST api to login a person?

I want to use the remainder API to take a username and a password despatched in a request and use it in wp_authenticate() then ship again if the credentials have been right. How would I do that.