register/login api

Question

I have been looking all over google and all I can find is fairly old plugins that appear outdated in assisting with an API registration/login.

Basically, I have a mobile app that needs to get data from the WordPress backend via the API. I want users to be able to register on the app and to obviously log in.

Is there support out of the box for this in WordPress or do you need to create a custom route etc?

I looked here:

https://developer.wordpress.org/rest-api/reference/users/#create-a-user

and I tried to use postman to post username, email and password to this endpoint

https://example.com/wp-json/wp/v2/users/

But it gives me an error. Any advice on how to do this would be greatly appreciated.

0
Waterfall 8 months 2020-11-23T09:10:36-05:00 0 Answers 9 views 0

Leave an answer

Browse
Browse