firebase-authentication

How does Firebase generate the Uid?

与世无争的帅哥 提交于 2019-12-07 04:44:28
问题 My question is how does Firebase generate the Uid? Is it generated from the app installation on the cellphone or maybe it is based on the login provider via email, Facebook, Google or the other ones that Firebase provide? 回答1: The Firebase User ID (often called uid) is an opaque identifier for a user account. It has no connection to the underlying identity provider(s) for the account and should be treated as an opaque value. 回答2: UUID is autogenerated based on timestamp and some entropy. UUID

Firebase Error: W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms

狂风中的少年 提交于 2019-12-07 04:37:31
问题 This is my SignUp Acitivity. I'm trying to create a createUserWithEmailAndPassword with Firebase and add some details to the user's profile such as Full Name, Address and Phone Number. I want to add the user profile under the Unique ID in the "users" database assigned to the new User when creating the user with email and password. public void signUpButtonClicked(View view) { if (!TextUtils.isEmpty(email_text) && !TextUtils.isEmpty(pass_text)) { mAuth.createUserWithEmailAndPassword(email_text,

Firebase 3 - Additional Auth Scope Data

做~自己de王妃 提交于 2019-12-07 04:06:43
问题 In the Firebase 3 documentation, they say you can grab additional scope data such as this one: Optional: Specify additional OAuth 2.0 scopes that you want to request from the authentication provider. To add a scope, call addScope. For example: provider.addScope('https://www.googleapis.com/auth/plus.login'); Once authenicated, I can't find the data as part of the "user" object. Any idea how to pick that extra data ? Thank you, 回答1: Firebase V3 will not return the additional requested data when

Android Firebase Database Error: Permission denied

北战南征 提交于 2019-12-07 03:57:09
问题 I am working on an android project that requires user email and pwd authentication. The details are stored in the firebase database.The problem occurs whenever I try logging in again with the email and password. In my logcat the error message is: W/SyncTree: Listen at / failed: DatabaseError: Permission denied Take a look at my code below: public class LoginUser extends AppCompatActivity { private RelativeLayout relativeLayout; private EditText et_email, et_password; private Button loginBtn;

PHP Firebase help - Set up JWT

大城市里の小女人 提交于 2019-12-07 03:21:08
问题 On my server I am running a few PHP files that read my Firebase Realtime Database. According to Firebase's documents I need to set up custom token to get my Firebase PHP Client running. The Firebase document says I need to return this; return JWT::encode($payload, $private_key, "RS256"); How exactly do I reference the JWT class? I downloaded a JWT library but I am not sure how to implement this into my project. Any help would be great, I am mainly a mobile developer and have little experience

Authentication for firebase hosting

不羁的心 提交于 2019-12-07 02:32:23
问题 I have a static app hosted on Firebase hosting whose backend is also on Firebase(communicating using firebase JS api). I want to add a simple auth page to all pages of this website so that only users I want can access this site. Is this possible? Looked at the docs but didn't find anything that helps me in this regard. 回答1: You can do this using Firebase Functions, and an Express call. Put all of your static files into a folder named functions/admin and put this function into functions/index

Google Sign In with Firebase in React Native

懵懂的女人 提交于 2019-12-07 02:18:21
问题 I'm trying to login with Google but it throws me this error: code: "auth/operation-not-supported-in-this-environment" message: "This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled." This is the code: const provider = new firebase.auth.GoogleAuthProvider(); provider.addScope('profile'); provider.addScope('email'); firebase.auth().signInWithPopup(provider) .then((result) =>

How to get user id from Firebase Auth in Flutter?

烈酒焚心 提交于 2019-12-07 02:15:36
问题 I want to save user-related data in Firestore by assigning user id to a document as a field. How to get user id from Firebase Auth? Or is there a better way to store user data in Firestore? I couldn't get user id from Firebase Auth in this way (the Text(_userId) returns _userId == null error): String _userId; ... @override Widget build(BuildContext context) { FirebaseAuth.instance.currentUser().then((user) { _userId = user.uid; }); return new Scaffold( appBar: new AppBar( title: new Text("App

Flutter build crashes using ProGuard with Firebase Auth

别来无恙 提交于 2019-12-07 01:47:04
问题 I followed these instructions on adding ProGuard to Flutter and am now seeing this exception when starting the application: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/auth/internal/zzae; This is obviously connected to Firebase Auth . The mentioned instructions also state the following: Any additional libraries (for example, Firebase) require their own rules to be added. I did, however, not find any resources which show what statements I would need to append to

Which pricing tier mentions Firebase Authentication?

我的梦境 提交于 2019-12-07 01:34:03
问题 Where can I find info on firebase authentication pricing? Is there any fee to use it, which tier, is there a threshold? It's not even mentioned on the pricing page at all 回答1: Authentication pricing is not mentioned on the pricing page at all because there isn't a fee to use Firebase Authentication. As a result, there is no threshold for doing that. 来源: https://stackoverflow.com/questions/44161195/which-pricing-tier-mentions-firebase-authentication