Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    I’m not fully up to speed with the REST API, so some of this may be off. It sounds like you are trying to implement something like user registration through the API. What the API provides is more akin to creating a user in the backend. When using cookie authentication, someone with create_users capability needs to be logged in, just as they do to add users in the backend.

    To have something closer to the registration process, you probably need a custom endpoint and an extended authentication method like oAuth or JSON Tokens so a non-privileged user can register and their user can be created under higher privileged credentials that remain inaccessible to the end user. I don’t know if these particular extended authorizations work that way. All I know is it will not work with cookie authentication.

Viewing 1 replies (of 1 total)

The topic ‘WP REST API for user sign up’ is closed to new replies.