firebase-authentication

How To Check If An Email Address Is Already In Use Firebase

你离开我真会死。 提交于 2019-12-09 07:04:52
问题 working on some FirAuth things, but for some reason I can't figure out how to check if the users proposed email address has already been taken. I've tried calling .fetchProvidersForEmail as suggested in other questions from a while back, but for whatever reason it just won't work. Also, I'm very green when it comes to completion handlers, so any constructive criticism on that would be welcome as well. So, for now, the parts of my code that pertain to this are: import UIKit import Firebase

firebase auth delayed on refresh

試著忘記壹切 提交于 2019-12-09 05:50:52
问题 Hard refreshes on my SPA React/Firebase application does not maintain auth state on immediate execution of a function. I have a workaround, but it's sketchy. My react routes utilize the onEnter function to determine whether or not the user is authenticated or not. For instance <Route path="/secure" component={Dashboard} onEnter={requireAuth}/> Furthermore, my requireAuth function looks like this: function (nextState, replace) { console.log('requireAuth', firebase.auth().currentUser); if (

How do I get the current user's access token in AngularFire2?

烈酒焚心 提交于 2019-12-09 05:32:44
问题 In AngularFire you were able to access the providers (e.g Google) accessToken for the authenticated user. There does not seem to be a way to access this with AngularFire2? On initial login say like this: this.af.auth.subscribe(user=> { if (user) { console.log(user.google); } }); It will log out the idToken, accessToken, provider, But (on a page refresh) subsequently will log out the standard details (uid, displayName etc....) And the accessToken is not an accessible property? Is there a way

FirebaseException: An internal error has occured. [ CONFIGURATION_NOT_FOUND ]

橙三吉。 提交于 2019-12-09 04:38:40
I was able to do google sigin successfully, when I pass token to firebase it returns com.google.firebase.FirebaseException: An internal error has occured. [ CONFIGURATION_NOT_FOUND ] at com.google.android.gms.internal.zzafg.zzes(Unknown Source) at com.google.android.gms.internal.zzafd$zzg.zza(Unknown Source) at com.google.android.gms.internal.zzafo.zzet(Unknown Source) at com.google.android.gms.internal.zzafo$zza.onFailure(Unknown Source) at com.google.android.gms.internal.zzafj$zza.onTransact(Unknown Source) at android.os.Binder.execTransact(Binder.java:458) In my code I have mAuth

How do I sign out users in Firebase 3.0?

给你一囗甜甜゛ 提交于 2019-12-09 04:18:17
问题 According to documentation, I force a user to sign out with the method signOut() . This is what I have tried: var rootRef = firebase.database().ref(); var loggedInUser = firebase.auth(); 1. firebase.signOut(); 2. loggedInUser.signOut(); 3. rootRef.signOut(); 4. signOut(); 5. firebase.auth.signOut(); I get ... is not a function for every one of the five above. I know there is no issue with my reference to the new Firebase, since firebase.database().ref(); and firebase.auth(); does not throw

How to use multi Auth - firebase?

∥☆過路亽.° 提交于 2019-12-09 03:51:23
问题 I have a register screen that contains " username, email, phone number, Password " and in this case, I use Phone Number Authentication to verify the number so after user verify his number I save his data into firebase DB, so after that, I navigate hem to login screen! that should contain Email, Password "he registered by them before" So I don't just compare if his data exist in DB or not, So it should be used Email/Password Firebase Auth, But I think it's will take a lot of hits to my Bill or

ERROR is value of type 'AuthDataResult' has no member 'uid'?

落爺英雄遲暮 提交于 2019-12-09 03:27:34
问题 My codes error I do not know why its saying that 'uid' has no member, also i don't know where AuthDataResult is coming from because i have never used this as an import or anything along those lines... @IBAction func signinPressed(_ sender: Any) { if let email = emailField.text, let password = passwordField.text { Auth.auth().signIn(withEmail: email, password: password) { (user, error ) in if error != nil{ //create account } else { KeychainWrapper.standard.set((user?.uid)!, forKey: ("Key_UID")

Android Firebase Authentication for Google Signin fails

六月ゝ 毕业季﹏ 提交于 2019-12-09 03:18:49
问题 I followed the firebase documentation from top to bottom and implemented a simple google Sign in option to my app. However, when I try to signin, the process halts after selecting a google account and results in an error inside the onActivityResult method: if (requestCode == RC_SIGN_IN) { GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data); if (result.isSuccess()) { // Google Sign In was successful, authenticate with Firebase GoogleSignInAccount account = result

How to separate two different user in firebase android app?

坚强是说给别人听的谎言 提交于 2019-12-09 01:31:29
问题 I have an application with two different types of users one as Teacher and the Second a normal user. if a normal member logs in, he will go to normal_memberActivity and if he's a Teacher member, he'll go to Teacher_memberActivity . How do I do this in loginActivity? My Firebase structure: this is database firebase rules { "rules": { ".read": true, ".write":true} } 回答1: i have been solving this problem for a week. I'm sorry to say the solution proposed above is kinda misleading. Thus, i have a

Firebase Facebook login check if user exist

杀马特。学长 韩版系。学妹 提交于 2019-12-09 01:28:31
问题 I have an facebook login system which works with firebase but I want to check if user exist on my firebase (i don't want to add it, just want to make sure if he exist because I want to redirect user to another page to complete its profile, once its done I'll want to send it to firebase). I just need to check if user exist on my db. Here is the code that I try but it returns nil error and it automatically add user to firebase. let credential = FIRFacebookAuthProvider.credentialWithAccessToken