firebase-php icon indicating copy to clipboard operation
firebase-php copied to clipboard

Email and Password Authentication

Open jbagaresgaray opened this issue 9 years ago • 7 comments

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

jbagaresgaray avatar Dec 23 '15 05:12 jbagaresgaray

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

julian-rare avatar Mar 01 '16 03:03 julian-rare

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

ktamas77 avatar Jun 14 '16 20:06 ktamas77

how to login using the rest api?

julian-rare avatar Jun 15 '16 23:06 julian-rare

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

ktamas77 avatar Jun 29 '16 07:06 ktamas77

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.

vdomah avatar Jul 18 '16 23:07 vdomah

@vdomah have same problem. You found solution?

greabock avatar Aug 09 '16 10:08 greabock

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

vdomah avatar Aug 09 '16 21:08 vdomah