dalenguyen / firebase-wordpress-plugin

A plugin that helps to integrate Firebase to WordPress
https://firebase-wordpress-docs.readthedocs.io
GNU General Public License v2.0
110 stars 31 forks source link

Create a new WordPress User through API not working #164

Closed harshachaitanya closed 3 years ago

harshachaitanya commented 3 years ago

Describe the bug Request Url: http://example.com/firebase/v2/users/register Request Method: POST Request Payload: { username: 'dale', email: 'dale@dalenguyen.me', password: 'the-password' } Response:

Expected behavior It has to create a user on the WordPress side. But isn’t creating image

dalenguyen commented 3 years ago

Hi @harshachaitanya, please don't use this endpoint. It will be deprecated in the next release.

harshachaitanya commented 3 years ago

@dalenguyen can you suggest another one make an entry on the WordPress site? Currently, we are unable to move forward irrespective of whether a user registered from Web/Mobile. Users should able to log in and access user information like posts/comments/addresses/orders/user information on both Web/Mobile.

dalenguyen commented 3 years ago

@harshachaitanya

If the WordPress website uses the plugin login shortcode, users from firebase can log in to WordPress as WordPress users.

https://firebase-wordpress-docs.readthedocs.io/en/latest/auth/wordpress-user-integration.html

harshachaitanya commented 3 years ago

@dalenguyen

we are using custom login form to log in. How to create a WordPress user session for firebase/mobile users on the website. That user doesn’t have any record on the DB side.

@dalenguyen can you suggest another one make an entry on the WordPress site? Currently, we are unable to move forward irrespective of whether a user registered from Web/Mobile. Users should able to log in and access user information like posts/comments/addresses/orders/user information on both Web/Mobile.