Pregunta

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?

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top