firebase-authentication

Firebase: Get DisplayName from UID [duplicate]

我是研究僧i 提交于 2019-12-07 23:51:26
问题 This question already has answers here : How do I return a list of users if I use the Firebase simple username & password authentication (6 answers) Closed 2 years ago . I am storing user's display name in Firebase Auth. Fetching from Firebase Auth is simple when the same user is logged in. But, when another user is logged in, how do I fetch an account's display name when I have their unique UID (User ID). 回答1: You can't The explanation is here How do I return a list of users if I use the

location.protocol" must be http or https

自古美人都是妖i 提交于 2019-12-07 23:25:27
问题 I developing a hybrid mobile application using Cordova + Angular 2 + Ionic 2. When using firebase Auth, when calling signInWithPopup() or signInWithRedirect() for social logins, firebase returns error "This operation is not supported in the environment this application is running on. "location.protocol" must be http or https." There's also a number of comments on this article, about same thing: https://firebase.googleblog.com/2016/01/social-login-with-ionic_77.html This is because the

How prevent username from duplicate signUp in Firebase? [duplicate]

你离开我真会死。 提交于 2019-12-07 22:56:27
问题 This question already has answers here : Firebase android : make username unique (3 answers) Closed 3 years ago . I want to prevent duplicate username while signUp form what user entered. I have created email login like below, firtly createUser and then auth it setValue with user dictionary. But I stack with Firebase security settings and how to check handle this situation. REF_BASE.createUser(email, password: pwd, withValueCompletionBlock: { .. REF_BASE.authUser(email, password: pwd,

Enforce custom rules for passwords for Firebase Auth accounts

一世执手 提交于 2019-12-07 21:52:42
问题 Is there any way that I could set custom rules for passwords when a user create an account? It seems like firebase doesn't provide a way to edit the password rules. I know I can set password rules on front end, but just like Frank van Puffelen mentioned, this method can be bypassed by directly calling the API. Is is possible to write some cloud function to handle account-creation request, and reject the request if the password is invalid? 回答1: Sure, you can write a Cloud Function to create

Permission denied error during multiple update on Firebase

会有一股神秘感。 提交于 2019-12-07 20:30:07
问题 I am using multiple updates feature on Firebase where I have created a object which is updating multiple locations in the database at once. I have given write permissions to each of those locations individually. Here is an example of what I am trying to update on Firebase as part of multiple updates { "alarms/298302f2-f95d-4200-b2ca-53dcf5706125/date": 1478141940167, "userInfos/-KGvMbo5MK-W5q4qgcF0/alarms/298302f2-f95d-4200-b2ca-53dcf5706125": 1478141940167, "userInfos/-KGvMIPwul2dUY181xLQ

SMS Retriever API not calling SMS_RETRIEVED_ACTION from Firebase Phone Auth

走远了吗. 提交于 2019-12-07 19:59:25
问题 SmsRetriever.SMS_RETRIEVED_ACTION is not been called. I am using Firebase Phone Auth: PhoneAuthProvider.getInstance().verifyPhoneNumber( mPhoneNumber, // Phone number to verify 60, // Timeout duration TimeUnit.SECONDS, // Unit of timeout activity, // Activity (for callback binding) mCallbacks); // OnVerificationStateChangedCallbacks and I am trying to retrieve SMS using the SMS Retriever API SmsRetrieverClient client = SmsRetriever.getClient(activity); // Starts SmsRetriever, which waits for

“This domain is not authorized” when using Firebase Authentication

烈酒焚心 提交于 2019-12-07 17:48:26
I am currently following a tutorial on this link I get the following error. firebase.js:75 Uncaught Error: This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console. Do I need to create a Authentication system first? You need to go on Firebase Panel, activate the signup method (Email/Password in this case) and then add your domain on the list of authorized domains: https://www.firebase.com/docs/web/guide/user-auth.html#section-configuring 来源: https://stackoverflow.com/questions/37671742/this-domain-is-not

Ioniv-v4 : ionic cordova plugin add cordova-plugin-googleplus Not working

帅比萌擦擦* 提交于 2019-12-07 17:18:26
This (cordova-plugin-googleplus) command is not working with IONIC-v4-BETA, please help on this issue, details mentioned below. Command ionic cordova plugin add cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=REV_KEY COMMAND ERROR PS C:\ROOT\yaflix\Source\DEV\yaflix> ionic cordova plugin add cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=com.googleusercontent.apps.**************************************** > cordova plugin add cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=com.googleusercontent.apps.********************************** --save (node:10740)

Android Firebase Authentication not working

南楼画角 提交于 2019-12-07 17:09:10
问题 For my Android application, I'm trying to use Firebase to authentication and data storage. Right now, I'm stuck on authentication. When my application loads, an error stacktrace appears in the Android Studio console. W/GooglePlayServicesUtil: Cannot find Google Play services package name. android.content.pm.PackageManager$NameNotFoundException: com.google.android.gms at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:137) at com.google.android.gms.internal

Firebase Initializing Without Auth - firebase.auth is not a function

陌路散爱 提交于 2019-12-07 17:06:01
问题 I cannot figure out why one of my Firebase apps initializes with auth() and one does not. I have followed the node installation options here: https://firebase.google.com/docs/web/setup **Edit: ** To clarify, the one that works is also using the admin sdk inside firebase functions. However, I don't understand how that might be connected to the front-end client sdk interface. I am continuously getting an error, whenever I try to call any firebase.auth() methods on the app that initializes