Using WP for user management

You might want to take a look at the REST API that comes out of the box with WordPress.

Here are the docs for Users, you can register users and list/retrieve/update them
https://developer.wordpress.org/rest-api/reference/users/

Here’s the information about how to authenticate to use the API (so that you can Reigister Users for instance)
https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/