kreait / laravel-firebase

A Laravel package for the Firebase PHP Admin SDK
https://github.com/kreait/firebase-php
MIT License
1.09k stars 174 forks source link

trying to login a firestore user using php #10

Closed mindful-devs closed 4 years ago

mindful-devs commented 4 years ago

I am new to cloud firestore. I am looking for a similar way in php like in javascript to login user and get access to database. I am reffereing to the following code but need that code in php. firebase.auth().signInWithEmailAndPassword(email, password).catch(function(error) { // Handle Errors here. var errorCode = error.code; var errorMessage = error.message; // ... });

also I have the following rules setup on the firestore database. service cloud.firestore { match /databases/{database}/documents { match /{document=**} { allow read, write: if request.auth.uid != null; } } }

Any help will higly be appriciated!

jeromegamez commented 4 years ago

That's currently not possible with the SDK - it's on my todo list but will require some serious rewrites, so there's, unfortunately, no ETA.

jeromegamez commented 4 years ago

Please follow the releases of https://github.com/kreait/firebase-php to get notified when this feature might be implemented.