Title: Create Firebase user and WordPress user through API
Last modified: June 3, 2020

---

# Create Firebase user and WordPress user through API

 *  [crowdfunder](https://wordpress.org/support/users/crowdfunder/)
 * (@crowdfunder)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/create-firebase-user-and-wordpress-user-through-api/)
 * Hi. I need to automatically create a WordPress user at the same time as I create
   a Firebase user. That is, the user will go through the normal account creation
   UI provided by Firebase and then I’d like to create a WordPress user using the
   Firebase credentials.
 * The user doesn’t directly interact with WordPress, but I have an application 
   server that does.
 * How do I create the Firebase user account and then immediately create and link
   the WordPress user? Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Dale Nguyen](https://wordpress.org/support/users/hanthuy/)
 * (@hanthuy)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/create-firebase-user-and-wordpress-user-through-api/#post-12929717)
 * Hi Crowdfunder,
 * If you use the Free version of the plugin, you have to add the WordPress endpoint
   manually in order to create a new user through API.
 * If you’re using the PRO version of the plugin, new user is created automatically
   after they log in with Firebase credentials in WordPress.
 * You can check the docs here: [https://firebase-wordpress-docs.readthedocs.io/en/latest/wordpress-user-integration.html](https://firebase-wordpress-docs.readthedocs.io/en/latest/wordpress-user-integration.html)
 * Thanks,
 *  Thread Starter [crowdfunder](https://wordpress.org/support/users/crowdfunder/)
 * (@crowdfunder)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/create-firebase-user-and-wordpress-user-through-api/#post-12932895)
 * As I said, the user doesn’t log in to WordPress directly. My application creates
   a WordPress account for them and interacts with WordPress REST APIs on their 
   behalf. The user never interacts directly with WordPress site.
 * You said that a new user is created when they log in. But they don’t log in, 
   only my app accesses WordPress.
 * So how would I use the normal Firebase auth process and automatically create 
   a WordPress user in the same process without the user having to log in to a WordPress
   site.
 *  Thread Starter [crowdfunder](https://wordpress.org/support/users/crowdfunder/)
 * (@crowdfunder)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/create-firebase-user-and-wordpress-user-through-api/#post-12932965)
 * Is it this?
    Endpoint: POST [https://example.com/firebase/v2/users/register](https://example.com/firebase/v2/users/register)
 * If so, then it seems that I have to send email/password in body. Therefore, I
   can only use Firebase SDK Authentication, not FirebaseUI Authentication.
 * Is that correct?
 *  Thread Starter [crowdfunder](https://wordpress.org/support/users/crowdfunder/)
 * (@crowdfunder)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/create-firebase-user-and-wordpress-user-through-api/#post-12933989)
 * Sorry, one more point: The user may ultimately log into WordPress and I want 
   them to use the firebase password. However, there may be some time between when
   they create their firebase user and when they log into WordPress. And in that
   time, I need create a WordPress user for them and save data with it that is necessary
   to support my application.
 * In other words, I cannot wait for them to log into WordPress to create their 
   WordPress User.
 *  [bikerflyeradmin](https://wordpress.org/support/users/bikerflyeradmin/)
 * (@bikerflyeradmin)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/create-firebase-user-and-wordpress-user-through-api/#post-13140940)
 * Hello, I am trying to do this very thing. I have a mobile app where I want a 
   new user to be created in WordPress when users sign up in the firebase app. I
   found this in the user guide:
 * Create a new WordPress User through API
    The Integrate Firebase PRO has its own
   Restful API endpoints that help to create a new WordPress user. In this scenario,
   when you have a mobile app, and you want to duplicate user in WordPress, you 
   can call the API to create a new User after user register on your app.
 * Endpoint: POST [https://example.com/firebase/v2/users/register](https://example.com/firebase/v2/users/register)
 * Example payload: {
    username: ‘dale’, email: ‘dale@dalenguyen.me’, password: ‘
   the-password’ }
 * But it does not mention how to authenticate in order to create the user. Is there
   any way you could share whether you figured this out? Or, could support please
   provide more information on this?
 * Thanks
 *  [bikerflyeradmin](https://wordpress.org/support/users/bikerflyeradmin/)
 * (@bikerflyeradmin)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/create-firebase-user-and-wordpress-user-through-api/#post-13174159)
 * [@crowdfunder](https://wordpress.org/support/users/crowdfunder/) sir were you
   ever able to figure this out? The user guide mentions that a new user can be 
   created via an endpoint built into the plugin, but then gives no information 
   about whether authentication is needed, how to set the headers, or anything, 
   and I can’t get anybody to answer my questions about it. Can you please let me
   know if you ever figured this out, and if you can refer me to a y I formation
   about how to do it.
 * Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Create Firebase user and WordPress user through API’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/integrate-firebase.svg)
 * [Integrate Firebase](https://wordpress.org/plugins/integrate-firebase/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/integrate-firebase/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/integrate-firebase/)
 * [Active Topics](https://wordpress.org/support/plugin/integrate-firebase/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/integrate-firebase/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/integrate-firebase/reviews/)

## Tags

 * [Firebase](https://wordpress.org/support/topic-tag/firebase/)

 * 6 replies
 * 3 participants
 * Last reply from: [bikerflyeradmin](https://wordpress.org/support/users/bikerflyeradmin/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/create-firebase-user-and-wordpress-user-through-api/#post-13174159)
 * Status: not resolved