firebase-authentication

Duplicate symbols when integrating Firebase and Google Sign In SDKs manually without Cocoapods

馋奶兔 提交于 2019-12-17 22:22:57
问题 I am getting duplicate symbols error when integrating Firebase and Google Sign In SDKs manually in my existing iOS project. The related SO question here didn't help as it uses Cocoapods. Firebase and Google Signin giving duplicate symbols error Steps I have taken in chronological order: Copied Analytics, Auth and Database folder along with Firebase.h file from the downloaded Firebase SDK (3.11.0) into my project and added to targets. Copied the GoogleService-Info.plist into the project and

Swift closure not setting variable

核能气质少年 提交于 2019-12-17 22:04:57
问题 I'm trying to set a variable that is outside a closure inside that closure, but it doesn't end up getting set in the end. However, the value that I'm setting the variable to is being printed to the console. Also, right after setting the return variable and printing it itself, the correct value is being printed to the console. The problem arises when I return the variable; its value stays the same as the value at initialization. Here is some psuedo-code: let str: String = { var ret: String =

How to verify email id authenticated by Google or not when we signup using the Firebase for android?

房东的猫 提交于 2019-12-17 21:28:58
问题 When users signup using the Firebase Email/Password SIGN-IN METHOD in android, how can we verify their Emails ? 回答1: For Android Email verification, first you can view the documentation by firebase here. Send a user a verification email FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser(); user.sendEmailVerification() .addOnCompleteListener(new OnCompleteListener<Void>() { @Override public void onComplete(@NonNull Task<Void> task) { if (task.isSuccessful()) { Log.d(TAG, "Email Sent

Restrict Firebase users by email

最后都变了- 提交于 2019-12-17 20:24:34
问题 I have a client that would like to be able to make a list of restricted emails that can access the data. So anyone else coming to the app can't read/write any data at all ( ideally can't even log in but I don't think that's possible with Firebase? ). Any ideas on how to go about this? I had thought of having an array of accepted emails and checking whether their email existed in the security rules but that didn't seem to work. I had the following in the database: "validEmails": ["test@test

Why firebase user still signed in after I deleted it from firebase dashboard

被刻印的时光 ゝ 提交于 2019-12-17 20:17:53
问题 I used Firebase Quickstarts for Android Auth sample, Then I created a user in firebase dashboard to login the user with email and password, the user logged in successfully. But when I deleted the user, it still logged in and showing the old user's email from (user.getEmail()) // [START auth_state_listener] mAuthListener = new FirebaseAuth.AuthStateListener() { @Override public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) { FirebaseUser user = firebaseAuth.getCurrentUser(); if

Custom email validation Firebase Action code

我怕爱的太早我们不能终老 提交于 2019-12-17 19:59:54
问题 I am working on a Application with firebase. I want to validat a users email, but since Firebase doesn't allow to change the verification message (To help prevent spam, the message can't be edited on this email template), i can't use this. I don't want to serve English text to my users. Is there a way to get/generate a custom ActionCode? I used this tut https://firebase.google.com/docs/auth/custom-email-handler it might solve the problem is i can get the temp actioncode somewhere. I found

firebaseAuth.getCurrentUser() return null DisplayName

只愿长相守 提交于 2019-12-17 18:29:10
问题 When I signIn with my google account and get the name with the getDisplayName(), my name appear correctly, but in the AuthStateListener doesn't. here part of my code: private void handleSignInResult(GoogleSignInResult result) { Alert.dismissProgress(); if (result.isSuccess()) { GoogleSignInAccount acct = result.getSignInAccount(); if(acct != null) { Log.i("NAME", acct.getDisplayName()); <-- RETURN MY NAME CORRECTLY credential = GoogleAuthProvider.getCredential(acct.getIdToken(), null); fuser

Users info are re-initialized after logging out and signing in

*爱你&永不变心* 提交于 2019-12-17 17:28:48
问题 Whenever the user is logging out and tries to log in once more all the attributes in the JSON tree are re-initialized. Here's my code: @Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == RC_SIGN_IN) { IdpResponse response = IdpResponse.fromResultIntent(data); if (resultCode == RESULT_OK) { // Sign-in succeeded, set up the UI FirebaseUser firebaseUser = FirebaseAuth.getInstance()

How to get linked account with current user in firebase

纵饮孤独 提交于 2019-12-17 17:23:01
问题 I am trying to link my firebase account to my google account and facebook account, and till here everything is working fine.here is my code how I am linking accounts. mAuth.getCurrentUser().linkWithCredential(credential) .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() { @Override public void onComplete(@NonNull Task<AuthResult> task) { if (task.isSuccessful()) { Log.d(TAG, "linkWithCredential:success"); FirebaseUser user = task.getResult().getUser(); updateUI(user); } else {

FIrebase Java/Android createUser failing

ぃ、小莉子 提交于 2019-12-17 17:01:16
问题 I'm trying to write a simple test of the Firebase user creation and authentication routines so that I can test my Firebase security settings. The code runs smoothly but the callbacks are not invoked and no users are created on the Firebase side. The output of below with the print statements is: Begin process Start Create User Creating User End Creating User End process Process finished with exit code 0 The code is using the firebase-client-android-2.2.3.jar file for the Firebase classes