Check authentication credentials using WP REST API

Have you tried the official Basic Authentication plugin?

https://github.com/WP-API/Basic-Auth