Hello all,
using Firebase Authentication/Facebook I'm getting the problem as follows:
- I'm giving to the user the option to use FaceBook OR Google authetication
- If I authenticated an user/email using Google, when I try to register again using FB Firebase raises the error message:
Error signing in: Error Domain=FIRAuthErrorDomain Code=17012 "An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address." UserInfo={FIRAuthErrorUserInfoNameKey=ERROR_ACCOUNT_EXISTS_WITH_DIFFERENT_CREDENTIAL, FIRAuthErrorUserInfoEmailKey=[email protected], FIRAuthErrorUserInfoUpdatedCredentialKey=<FIROAuthCredential: 0x28287cdc0>, NSLocalizedDescription=An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.}
This occurs because I already used this email registering with Goggle/Firebase (what can happen with the user also...)
But I don't receive this event in B4X code (this is only an event showed in log). Then,it isn't possible to know that the authentication failed and the progressdialog raised remains on the screen, almost "locking" the app to the user.
Question: how can I get the event Error Domain=FIRAuthErrorDomain Code=17012 in the B4X code? This didn't trigger the Auth_SignError event...
Thanks for all!!!
using Firebase Authentication/Facebook I'm getting the problem as follows:
- I'm giving to the user the option to use FaceBook OR Google authetication
- If I authenticated an user/email using Google, when I try to register again using FB Firebase raises the error message:
Error signing in: Error Domain=FIRAuthErrorDomain Code=17012 "An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address." UserInfo={FIRAuthErrorUserInfoNameKey=ERROR_ACCOUNT_EXISTS_WITH_DIFFERENT_CREDENTIAL, FIRAuthErrorUserInfoEmailKey=[email protected], FIRAuthErrorUserInfoUpdatedCredentialKey=<FIROAuthCredential: 0x28287cdc0>, NSLocalizedDescription=An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.}
This occurs because I already used this email registering with Goggle/Firebase (what can happen with the user also...)
But I don't receive this event in B4X code (this is only an event showed in log). Then,it isn't possible to know that the authentication failed and the progressdialog raised remains on the screen, almost "locking" the app to the user.
Question: how can I get the event Error Domain=FIRAuthErrorDomain Code=17012 in the B4X code? This didn't trigger the Auth_SignError event...
Thanks for all!!!