ktamas77 / firebase-php

Firebase PHP Client
792 stars 215 forks source link

Email and Password Authentication #32

Open jbagaresgaray opened 8 years ago

jbagaresgaray commented 8 years ago

Is this currently supported on the library https://www.firebase.com/docs/android/guide/login/password.html ?

julian-rare commented 8 years ago

I need this too :( whats the REST call that android makes?

ktamas77 commented 8 years ago

@jbagaresgaray @julian-rare can you please elaborate on this?

julian-rare commented 8 years ago

how to login using the rest api?

ktamas77 commented 8 years ago

you need to generate a token using your secret key and this library: https://github.com/firebase/firebase-token-generator-php

vdomah commented 8 years ago

Hello! firebase-token-generator-php generates JWT token. I'm trying to pass it as DEFAULT_TOKEN but getting "Failed to validate MAC" error. Tried to use https://github.com/firebase/php-jwt lib but don't see what to pass as token still. Can you make more precise instruction please? Seems to be simple but I'm tired to be stuck on that.

greabock commented 8 years ago

@vdomah have same problem. You found solution?

vdomah commented 8 years ago

@greabock I ended using eelkevdbos/firebase-php package because it was used in elsangedy/laravel-firebase. Works without problem.