I'm using Laravel's built in authentication in making laravel apps. And recently i integrated Firebase's Realtime DB as a replacement for my MySQL data storage.
Although laravel's authentication is pretty neat, I realized it was awkward using MySQL database for my authentication (Larvel) and Firebase DB for my realtime data storage.
Below is a working script i made to sign in authentication in Firebase.
var auth = firebase.auth();
// add login event
btnLogin.click(function(e) {
e.preventDefault();
// get email and pass
var email = txtEmail.val();
var pass = txtPassword.val();
// sign in
var promise = auth.signInWithEmailAndPassword(email, pass);
promise.catch(e => console.log(e.message));
});
My problem is, How can I integrate Firebase.Auth() using laravel?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kAxJiQ
via IFTTT
Aucun commentaire:
Enregistrer un commentaire