firebase-authentication

FirebaseUI authentication with Facebook not working

可紊 提交于 2019-12-19 05:08:33
问题 I am using FirebaseUI-Authentication . Signing in with an email or a Google account is successful, but sign in with Facebook doesn't work. onActivityResult() is not called after AuthUI activity was started and attempted to sign in with Facebook. After sign in attempt the app is stuck at the loading window. logcat outputs a FirebaseApp log: Notifying background state change listeners. On the Facebook app dashboard I set the Valid OAuth redirect URI , as the firebase guide stated, and I set the

Linking multiple auth providers with Firebase on Login

。_饼干妹妹 提交于 2019-12-19 04:37:12
问题 I wish to link multiple auth providers on the time of user signin into the app . Firebase docs provides a method to link a new auth provider with logged in one but I wish to link on the time on login/signup so user can choose any auth provider without any hassles to link them manually . Any suggestions on this . Please help. 回答1: Linking accounts requires that the user authenticates with each of those accounts. By signing in to an account/provider, the user proves they "own" that account at

Cannot resolve symbol default_web_client_id GoogleSignInOptions Android Firebase

寵の児 提交于 2019-12-19 03:58:44
问题 My project works fine for last six month and app in play store. For an update, I reopen the project shows default_web_client not resolved for the following piece of code. GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestIdToken(getString(R.string.default_web_client_id)) .requestEmail() .build(); I try the following methods, 1.Clean and rebuild 2.Clear cache and restart 3.Set getString(R.string.default_web_client_id) as empty string and run

Firebase user returns null metadata for already signed up users

眉间皱痕 提交于 2019-12-19 03:25:14
问题 I have been using Firebase for authentication of users in the app. FirebaseAuth.getInstance().getCurrentUser().getMetadata() returns null when user comes back to the app after the sign up. It works perfectly when user signs up for the first time, but returns null for returning users. 回答1: Malcolm from the Firebase Team here. Thanks for pointing this out. This is presently a bug in the persistence done by the Android SDK. We'll get on fixing this ASAP - keep an eye on upcoming release notes to

Firebase google auth automatically selecting user. How to force it to select account

喜欢而已 提交于 2019-12-19 02:59:04
问题 If in any browser, when i am logged in with single google account and try to invoke 'sign in with google' option on firebase, it is automatically logging-in to firebase with the already logged in account. It gives me no option to login with a different account. This happens only if one account is logged in browser. Multiple accounts doesn't create this problem. So, it is any way I can force users to choose accounts everytime they click 'sign in with google' button? 回答1: This worked for me:

EXC_BAD_ACCESS code=2 on including Firebase/Auth in Podfile

随声附和 提交于 2019-12-18 21:50:49
问题 I am getting EXC_BAD_ACCESS after including 'Firebase/Auth' in Podfile. This happens without adding any line of firebase code. I am using swift3 on xcode 8 and the resultant pods are - Installing Firebase (3.8.0) Installing FirebaseAnalytics (3.5.1) Installing FirebaseAuth (3.0.6) Installing FirebaseCore (3.4.4) Installing FirebaseInstanceID (1.0.8) Using GTMOAuth2 (1.1.4) Using GTMSessionFetcher (1.1.7) Using GoogleAppUtilities (1.1.2) Installing GoogleInterchangeUtilities (1.2.2) Using

Can I make Firebase use a username login process?

落爺英雄遲暮 提交于 2019-12-18 18:09:53
问题 I want to make a system which allows for username login. This process requires the following: User must register with an email/password The user can set a unique username The user can sign in with either email or username The user can recover their password via email or username The functionality must work on a persistence enabled database This question has been answered previously, but it disabled the functionality for the user to use password recovery. They also didn't address case

Can I make Firebase use a username login process?

霸气de小男生 提交于 2019-12-18 18:09:14
问题 I want to make a system which allows for username login. This process requires the following: User must register with an email/password The user can set a unique username The user can sign in with either email or username The user can recover their password via email or username The functionality must work on a persistence enabled database This question has been answered previously, but it disabled the functionality for the user to use password recovery. They also didn't address case

Migrating Firebase users to AWS Cognito

做~自己de王妃 提交于 2019-12-18 16:46:21
问题 I currently have a mobile application using Firebase for user authentication and storing data. I would like to migrate from Firebase to AWS. Exporting the DB from Firebase is simple enough. Download the JSON export and populate AWS. How do I migrate user authentication to Cognito? 回答1: There are multiple ways to migrate users to AWS Cognito. A couple approaches are: Import users as batches. This will require you to take users in to the forget password flow. Onboard users to Cognito UserPools

“Invalid Token” when trying to authenticate phone number using firebase

五迷三道 提交于 2019-12-18 14:38:51
问题 This is my code: import FirebaseAuth class AuthPhoneNum { static func getPhoneNum(phoneNumber: String) { PhoneAuthProvider.provider().verifyPhoneNumber(phoneNumber) { (verificationID, error) in if let error = error { print(error) return } UserDefaults.standard.set(verificationID, forKey: "authVerificationID") } } static func verify(verificationCode: String?) { guard let verificationID = UserDefaults.standard.string(forKey: "authVerificationID") else { return } if verificationCode != nil { let