firebase-authentication

Finding correct Firebase Auth id_token on $onAuthStateChanged

那年仲夏 提交于 2019-12-10 01:36:47
问题 I am currently using Angular 1.5.8 , Firebase 3.3.0 , and AngularFire 2.0.2 . When I call $firebaseAuth.$signInWithPopup , the promise returns with a firebase user that includes firebase.user.idToken , but when I call $onAuthStateChanged , firebase user does not return with a .user property. What is the correct token to use for server authentication from the $onAuthStateChanged function? I was using the md property, but then it stopped working and switched to a kd property and I realized that

Firebase Android Auth object no callbacks firing

ぐ巨炮叔叔 提交于 2019-12-10 01:02:41
问题 I've been going through the Firebase docs to set up a user authentication system in my android app. For some reason however, it doesn't look like any of the callbacks are running on my FirebaseAuth object! For example with setting up the Facebook authentication as instructed here private void handleFacebookAccessToken(AccessToken token) { Log.d("AUTH", "handleFacebookAccessToken:" + token.getToken()); // ... AuthCredential credential = FacebookAuthProvider.getCredential(token.getToken()); Log

firebase createUser without signin [duplicate]

余生长醉 提交于 2019-12-10 00:56:48
问题 This question already has answers here : How to just create an user in Firebase 3 and do not authenticate it? (2 answers) Firebase kicks out current user (13 answers) Closed 3 years ago . My admin user can create other users, but everytime I create a user my admin user is signed out and the new user is signed in automatically, is there any way to create user without signing in? 来源: https://stackoverflow.com/questions/38005960/firebase-createuser-without-signin

Firebase NodeJS Authentication

帅比萌擦擦* 提交于 2019-12-10 00:48:01
问题 I have built a fairly basic ExpressJS app and am using Firebase for authentication. When the app loads it checks to see if a user is logged in and if not shows the login screen. The user then enters an email and password and this does a POST to my express ass and logs in the user like so: app.post('/login-user', function(req, res) { firebase.auth().signInWithEmailAndPassword(req.body.email1, req.body.password1).then(function(authData){ res.redirect('/') }).catch(function(error) { console.log(

How can check email is exist or not, I mean email is real that is somebody have in firebase android app?

笑着哭i 提交于 2019-12-10 00:12:56
问题 You know some people are making up email to enter the app fastly. I want to check the user mail is real, not fake. I did some seacrhing , is there any other way without email verification? How can I control this situation? Thank you all. 回答1: There are some API options you can call to verify the existence of an email address. For example this one offers a Rest API for that. If you meant inside firebase. Nope, there is no way. In my most recently app you can even create users with emails such

Passing checkbox value to save / Do not save Password via react native

北城以北 提交于 2019-12-09 23:48:06
问题 I'm using Firebase auth I will want to add a Check box or Switch, it will save the password for next login and Do not save it when it is clicked again How to Passing checkbox value to save / Do not save Password? This is my Login Page Code: export default class Login extends Component { constructor(props) { super(props) this.state = { email: '', password: '', response: '' } this.signUp = this.signUp.bind(this) this.login = this.login.bind(this) } async signUp() { try { await firebase.auth()

Using Firebase authentication and Firestore in China

强颜欢笑 提交于 2019-12-09 14:47:35
问题 Using Firebase stack for chrome extensions :) However, have one BIG problem. Users located in China cant use the app since Google is blocked there thus Firebase authentication fails ... well, one option is to use VPN but in terms of user experience, it's a big No No ... is there any better way to resolve/workaround this issue Using mainly firebase auth (Google provider) and Firestore Can use somehow custom tokens to resolve this? https://firebase.google.com/docs/auth/admin/create-custom

Firebase : How to send a password reset email backend with NodeJs

∥☆過路亽.° 提交于 2019-12-09 13:44:17
问题 I'm trying to impliment the code as found here: https://firebase.google.com/docs/auth/web/manage-users#send_a_password_reset_email var auth = firebase.auth(); var emailAddress = "user@example.com"; auth.sendPasswordResetEmail(emailAddress).then(function() { // Email sent. }).catch(function(error) { // An error happened. }); But I can't find the sendPasswordResetEmail method in firebase admin. Anyway I can do this on the backend? 回答1: ORIGINAL JULY 2018 ANSWER: The sendPasswordResetEmail()

Using Firebase Auth with Django

自古美人都是妖i 提交于 2019-12-09 12:01:23
问题 I want to use firebase authentication for my django webapp. To achieve this, I think would I need to write a custom auth backend - is that right? I don't see any libraries that already do this - django-allauth looks like it comes pretty close as an alternative but I am interested in the phone number verification provided by firebase. I'm also confused about what happens to the User model and functions like request.user or user.is_authenticated. Right now I use the authenticate and login

AngularFire2 Authentication Error: First argument “email” must be a valid string

前提是你 提交于 2019-12-09 08:35:38
I am trying to make login and signup forms for my web app using angularFire2 and Firebase. I am getting an error when taking a users signup information and passing it into the signInWithEmailAndPassword function. signInWithEmailAndPassword failed: First argument "email" must be a valid string. I have everything in my component that deals with the email variable typed as a string and it logs to the console as a string so I am not sure exactly what is going on. I have researched for almost 3 hours now and cant find anything that could fix the issue. Template: <form action="" class="login">