firebase-authentication

Firebase Phone authentication and Linking

徘徊边缘 提交于 2019-12-18 13:49:10
问题 i'm trying to link my phone number with my email password authentication. So i build my registration using below steps: User enters email address and password. then i call firebase.auth().createUserWithEmailAndPassword(values.email, values.password) then I need to link current account with phone number so I'm using firebase.auth().currentUser.linkWithPhoneNumber("+xxxxxxxxxx", xxx) however, i don't see any linking. 2 accounts created in my firebase console and the current user have phone

Does expo support firebase phone auth?

回眸只為那壹抹淺笑 提交于 2019-12-18 13:48:09
问题 I am trying to implement firebase phone auth for expo. I have followed many resources on internet but succeeded. Could you please let me know is it possible/available? if it is possible please share some useful resources for expo thanking you for anticipation. 回答1: I had the same problem, but I found the solution. So, how it works: We have special static "Captcha" web page, hosted on domain, that authorized on our Firebase project. It simply shows firebase.auth.RecaptchaVerifier . User

How to make app wait until Firebase request is finished

情到浓时终转凉″ 提交于 2019-12-18 12:39:27
问题 I want my method to wait until Firebase request finished uploadSingUpInfo returns before the Firebase request finishes, and this is a problem for me - some method returns nil. static func uploadSingUpInfo(fullName:String,email:String,password:String)->String{ rootRef = FIRDatabase.database().reference() var returnVlue="not valid" FIRAuth.auth()?.createUserWithEmail(email, password: password) { (user, error) in if (error != nil){ returnVlue=(error?.userInfo["error_name"]) as! String } else{

Add a “Full Name” Field to Firebase Email/Password Authentication?

坚强是说给别人听的谎言 提交于 2019-12-18 09:49:23
问题 Is there a way to add a "Full Name" field to the Email/Password authentication on Firebase? (Using Swift) 回答1: You cannot add your own custom field to the Firebase Authentication social providers (Facebook, Google, etc) or email+password. You can of course store such information in your Firebase Database, keyed by the user's ID: users uid_209103 fullName: "Frank van Puffelen" Note that Firebase Authentication already has a displayName property for each user, which may cover your needs. 来源:

Unhandled Exception: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null)

馋奶兔 提交于 2019-12-18 09:47:58
问题 Before mark it as duplicate please read the question. I have set both SHA1 and SHA256 in my google console. I have tried many way but still facing error. Unhandled Exception: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null) Also tried with Flutter and google_sign_in plugin: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null) and other so many. Where I'm still missing ? 回答1: A lot can go wrong and I

Firebase Prevent Creating Account Before Email Verification

我的未来我决定 提交于 2019-12-18 09:45:10
问题 I am working on an android project that includes user sign-in with email. But the problem is this. When I create test account it immediately appears in the firebase authentication section without verification . But it also sends verification mail. I want to prevent this. Because for example if somebody enters my email address and they can not click verification link because it comes to my mailbox. But when I try to sign-up with my normal mail address app crashes and it is not sending

Change DisplayName in Firebase

大兔子大兔子 提交于 2019-12-18 09:33:03
问题 I am using email registration Firebase. As of now their is no option to set DisplayName in Firebase. So I am redirecting users to a class where they can change DisplayName soon after signing up through email and password. My problem is I am unable to achieve that. Here's what I have done so far: public class UsernameActivity extends AppCompatActivity { private FirebaseAuth.AuthStateListener authListener; private FirebaseAuth auth; private EditText mName; private TextView btnSignUp; @Override

Firebase custom claim how to set?

孤人 提交于 2019-12-18 09:30:31
问题 I'm struggling with firebase custom claims. I have tested a lot of approaches nothing works. Obviously, I miss something important in the concept itself. So I'm back to the root. This script from the google example should apply customs rule on a newly created user exports.processSignUp = functions.auth.user().onCreate(event => { const user = event.data; // The Firebase user. const customClaims = { param: true, accessLevel: 9 }; // Set custom user claims on this newly created user. return

Firebase authentication limit login by the same user

五迷三道 提交于 2019-12-18 09:28:06
问题 is there a way in Firebase to limit the number of logins by the same user at the same time, says I want to put a limit of 3 devices at a time for one single account, how can I achieve that ? 回答1: That is not supported by Firebase. The best you can do is keep track of the token auth_time . This is the time of sign-in. You would keep a queue of 3 entries for that. Each time you sign-in a user, send their ID token for verification, add the auth_time to the queue (if it is not there already) and

Logging a user out with Firebase 3 and Swift still shows the `currentUser`

被刻印的时光 ゝ 提交于 2019-12-18 08:57:21
问题 I am trying to log a user out with Firebase 3 in my iOS application. Here is my code: do { databaseReference.child("Users").child(CUUID!).removeAllObservers() try FIRAuth.auth()?.signOut() print("FIRUSER - \(FIRAuth.auth()?.currentUser)") self.performSegueWithIdentifier("logOutSegue", sender: self) } catch let logOutError { print("Error Logging User Out - \(logOutError)") } What I am trying to do is perform a segue back to the login screen if a user is successfully logged out. In order to