firebase-authentication

How to get SHA-1 key in Android Studio 2.3.1?

不问归期 提交于 2019-12-07 09:48:38
问题 When I try gradle(Right corner): My_project: app: click on tasks: android: signingReport it doesn't give me any key or anything expected. I am not able to get SHA-1 key in Android Studio 2.3.1. I get this: Run build 761ms Run init scripts 23ms Configure settings 1ms Configure build 343ms Project : 343ms Resolve dependencies :classpath 331ms Calculate task graph 355ms Project :app 352ms Resolve dependencies :app:classpath 0ms Resolve dependencies :app:_debugApk 78ms Resolve dependencies :app:

“Uncaught ReferenceError: Firebase is not defined”

耗尽温柔 提交于 2019-12-07 09:00:29
问题 I'm working with Firebase for the first time on a practice project and I'm having a very difficult time setting up the ability for users to log in to their accounts. I've successfully set up registration but so far I can't get log in and check auth state to work properly. The error I keep receiving in the console is "Uncaught ReferenceError: Firebase is not defined" I've done some research on my own but the only answers I seem to find are ones saying you need to include the script tags for

Dealing with Email address already in use - Firebase Authentication

徘徊边缘 提交于 2019-12-07 08:28:53
问题 My app has gmail and facebook authentication integrated through Firebase. I noticed if someone signs up with their gmail then signs up with Facebook, if the Facebook had the same email as their gmail then they'll get the error: "The email address is already in use by another account." Is the only reasonable way to handle this to tell the user to sign in with different credentials? Maybe show a message like "Email already in use, please sign up with different account"? 回答1: There are 3 ways in

Flutter multidex problem With FirebaseAuth , Firestore and Google Sign in

做~自己de王妃 提交于 2019-12-07 08:18:58
问题 Flutter application is working fine if i use only firestore. But as now i want to add Firebase Auth it is Causing problem And showing Dex error log How can i use both firestore and Firebase Auth. 回答1: In your app/build.gradle file inside your android folder , add this attribute multiDexEnabled . defaultConfig { ... multiDexEnabled true } Don't forget: flutter clean 来源: https://stackoverflow.com/questions/52232452/flutter-multidex-problem-with-firebaseauth-firestore-and-google-sign-in

How to detect if a user has signed in to my app using Firebase with Facebook, email, or Google using Swift

寵の児 提交于 2019-12-07 07:36:04
问题 I want to detect if a user has signed in using Facebook or email, etc... I found an answer for Android, but I am programming in Swift for iOS and I am not sure how to translate the code entirely. The android/java code is : for (UserInfo user:FirebaseAuth.getInstance().getCurrentUser().getProviderData()) { if (user.getProviderId().equals("facebook.com")) { System.out.println("User is signed in with Facebook"); } } I have tried to translate it, but I can't seem to figure out how to access the

Google Sign-In via Firebase: GIDSignInDelegate does not conform to ViewController

怎甘沉沦 提交于 2019-12-07 06:11:09
问题 I'm introducing Google Sign-In to my app and whilst both Google and Firebase documentation is thorough enough, what I have done as they suggested is not sufficient... I am still getting this error. Hopefully this will help others with finding a solution to the problem when implementing their SDK....thanks in advance for reviewing this chunky one: Here's the Firebase guide and the Google guide: So Added Google to podfile - CHECK Added line into Bridging-Header - CHECK Added GoogleService-Info

'com.google.android.gms.common.api.GoogleApiClient' is deprecated

六眼飞鱼酱① 提交于 2019-12-07 06:02:41
问题 I'm using in my app Google sign-in method and I have updated today my dependencies to: implementation "com.google.firebase:firebase-core:17.1.0" implementation "com.google.firebase:firebase-auth:19.0.0" And I stared to get warnings about deprecated classes. Warning:(26, 12) 'com.google.android.gms.common.api.GoogleApiClient' is deprecated And Warning:(27, 36) 'com.google.android.gms.common.api.GoogleApiClient.Builder' is deprecated This is my code: static GoogleApiClient

How to configure %APP_NAME% in firebase app?

时光总嘲笑我的痴心妄想 提交于 2019-12-07 05:55:37
问题 I configured the phone authentication service However when i receive the SMS it displays something atrocious. I get something like "firebase-production.app..." How to fix it ? 回答1: For Android and iOS, the App store and Play store name are used as those are already vetted before release. If this is a web app, the page's domain name is used as the app name. The reason is because this is the only verifiable identifier associated with the web app. The same thing is used for OAuth redirects. When

How can I detect if the user was deleted from Firebase auth?

给你一囗甜甜゛ 提交于 2019-12-07 05:26:41
问题 Two apps are in the same Firebase project. One app deleted a user from Firebase Auth. But another app still get user uid from somewhere, maybe cache, and access the data in Firebase database with Auth's uid too. I mean I can still get "user.uid" by let user = FIRAuth.auth().currentUser , if keeping sign-in. The apps both set FIRDatabase.database().persistenceEnabled = true . I would like to sing out or refresh cache at all apps if the user was deleted from Auth accordingly. 回答1: You can

Why can't we use getUid() to authenticate with your backend server in firebase authentication

蓝咒 提交于 2019-12-07 04:56:33
问题 In this code snippet (firebase doc) they have mentioned do not use user.getUid() to authenticate with your backend server. use FirebaseUser.getToken() instead. FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser(); if (user != null) { // Name, email address, and profile photo Url String name = user.getDisplayName(); String email = user.getEmail(); Uri photoUrl = user.getPhotoUrl(); // The user's ID, unique to the Firebase project. Do NOT use this value to // authenticate with your