ktamas77 / firebase-php

Firebase PHP Client
791 stars 215 forks source link

Get data through php with condition authentication #65

Open kuldeepcci opened 7 years ago

kuldeepcci commented 7 years ago

Hi, Actually i need to apply rules to my app database. And after applying data display as it is with use of the library. For that I use JWT also to generate custom token and get data with that token also. But not working. JWT I get grom here : https://github.com/luciferous/jwt. Token generation and signInWithCustomToken process through javascript run successfully. But after that applying same token to get data with php not working. and display:

{error: "Unauthorized request."}

    So let me know where i was wrong.  for the demo purpose I attach code.

send.txt