Reputation: 339
I have data that I need to save into firebase from a user. My Firebase schema is like..
{
users: {
1: {
data..
Is it possible to create a new Firebase user in PHP so that I can use the generated user_id to save the data?
Upvotes: 1
Views: 6995
Reputation: 10195
I'm not sure I fully understand your questions. If you're trying to authenticate a client as a given user, you need to generate an authentication token, place it in the page, and have the client call auth() with that token. See the docs here:
https://www.firebase.com/docs/security/custom-login.html
If you're merely trying to write some data into Firebase at the /users location from PHP, you can do so with the REST API:
https://www.firebase.com/docs/rest-api.html
Upvotes: 1