firebase-authentication

Cannot retrieve email from FirebaseAuthentication on Android/iOS

孤者浪人 提交于 2020-01-25 02:58:06
问题 I am using FirebaseAuth in my app with Google/Facebook social logins and we allow user to change his email after first login because we have our own backend with user management and we prefill this email in the registration form. It seems that all of a sudden I can't retrieve user's email address from FirebaseUser.getEmail() method. When I try to retrieve email using Facebook/Google login SDKs I can retrieve it so it's not a privacy issue. My email is verified so this should not be problem

Firebase email verification android

徘徊边缘 提交于 2020-01-24 20:00:11
问题 I am new to Firebase development. I am creating a user login system with Firebase. I am struggling with verifying emails registered users. Here is the code I wrote. auth.createUserWithEmailAndPassword(email,password).addOnCompleteListener(MainActivity.this, new OnCompleteListener<AuthResult>() { @Override public void onComplete(@NonNull Task<AuthResult> task) { Toast.makeText(MainActivity.this, "createUserWithEmail:onComplete:" + task.isSuccessful(), Toast.LENGTH_SHORT).show(); progressBar

Can't read data from Firebase after authentication

南楼画角 提交于 2020-01-24 13:38:47
问题 Hello guys I'm new to Firebase and I am trying to develop a simple chat app. So far I have got the authentication done following the steps on the Firebase documentation. This is my login method loginUser: function(){ console.log("Login button"); var self = this; ref.authWithOAuthPopup("github", function(error, authData) { if (error) { console.log("Login Failed!", error);} else { console.log(authData); ref.child("users").child(authData.uid).set({ auth : authData.auth, provider : authData

Can't read data from Firebase after authentication

99封情书 提交于 2020-01-24 13:37:07
问题 Hello guys I'm new to Firebase and I am trying to develop a simple chat app. So far I have got the authentication done following the steps on the Firebase documentation. This is my login method loginUser: function(){ console.log("Login button"); var self = this; ref.authWithOAuthPopup("github", function(error, authData) { if (error) { console.log("Login Failed!", error);} else { console.log(authData); ref.child("users").child(authData.uid).set({ auth : authData.auth, provider : authData

Firebase: How to always force a sign-in?

谁说我不能喝 提交于 2020-01-24 10:09:12
问题 Working in Eclipse, & using the provided methods in Firebase' docs, I was able to setup logins for several providers such as Google and Facebook, using the redirect option. I basically click on a button for the provider on my web page, & it takes me to the login screen where I can enter a UID and password (e.g. Google sign-in) However, once I authenticate properly with a valid account, and even if I sign-out, I get logged into the same account, without ever getting the screen prompting to log

How to handle multiple sign in methods for the same user in Firebase?

我是研究僧i 提交于 2020-01-24 06:36:07
问题 I'm currently developing an authentication system with Firebase. I'd like my system to accept email/password, Google and Facebook as sign-up and sign-in methods. So far, so good. Everything works good when the user signs up with each method separately. The problem begins when a user wants to sign up with another method and I need to link the new method to same account that was previously registered by the same user using another method. My examples will mention only the email/password and

Firebase .NET Token Verification

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-24 03:05:09
问题 Working on a project that uses Firebase for some data storage, and our client requests that the server be implemented with C#.NET. We're setting up REST endpoints on the server so that the client is able to communicate with it for a few purposes (for example, triggering an algorithm to run which can only occur on the server). Firebase recommends we identify users via an ID token, as noted here: https://firebase.google.com/docs/auth/server/verify-id-tokens#verify_id_tokens_using_a_third-party

How to prevent same user logging in from different devices ? My app is paid , so I dont want credentials to be shared

江枫思渺然 提交于 2020-01-24 00:54:31
问题 I am new to firebase , but I managed to develop an app using firebase -email&password authentication This app is for an organization's members so there is no sign up on the app , the organization gives me a list which I add to user list.My problem here is , I have only 45 registered users ,but there are almost 85 who are using the app.I understand I should be using an auth token , but I am not quite clear.Can anybody explain the easiest way I could prevent multiple logins simultaneously ? I

The method 'SignInWithTwitter isn't defined in the class flutter

旧时模样 提交于 2020-01-24 00:49:34
问题 im trying to add Twitter sign-in method in my project.i have got few lines of code online when i try it in my project its throwing me error. can someone help me in this. Here's my code: Future<FirebaseUser> loginWithTwitter() async { var twitterLogin = new TwitterLogin( consumerKey: 'Y2MyConsumerKeyYKX', consumerSecret: 'xYXUMyConsumerSecretKeyjFAJZMyConsumerSecretKeyS3i', ); final TwitterLoginResult result = await twitterLogin.authorize(); switch (result.status) { case TwitterLoginStatus

Firebase Auth state changes after creating new user

余生长醉 提交于 2020-01-23 17:07:41
问题 Auth state changes when a new user is created with email and password. I implement firebase.auth().onAuthStateChanged() observable to watch login state in my app. But it have tool for creating new users that reproduces de issue. After creating new user with firebase.auth().createUserWithEmailAndPassword() the observable returns the new user, wich causes my app log out. Is this normal? How can I create new users from my app without changing auth state? See the stackblitz example 回答1: while