firebase-authentication

Firebase Admin when I add a user email is anonymous

青春壹個敷衍的年華 提交于 2019-12-12 03:44:00
问题 IM using the new firebase admin SDK for node js and I created an api where I can add users. Everything is working fine but when I see a new user in my firebase dashboard I find Anonymous. 回答1: When you create a custom authentication token with Firebase Admin SDK, those users are not shown in the Firebase Authentication console. 来源: https://stackoverflow.com/questions/42000449/firebase-admin-when-i-add-a-user-email-is-anonymous

com.google.firebase.FirebaseException: An internal error has occurred. [ USER_NOT_FOUND ]

▼魔方 西西 提交于 2019-12-12 03:41:49
问题 I have implemented Firebase authentication with email and password, here is my code mFirebaseAuth.createUserWithEmailAndPassword(edtEmail.getText().toString(), edtPassword.getText().toString()).addOnCompleteListener(new OnCompleteListener<AuthResult>() { @Override public void onComplete(@NonNull Task<AuthResult> task) { if (task.isSuccessful()) { FirebaseUser user = task.getResult().getUser(); Toast.makeText(RegisterActivity.this, "User registered successfully " + user.getEmail(), Toast

Angularfire 2 Error: The specified authentication provider is not enabled for this Firebase

大憨熊 提交于 2019-12-12 03:36:28
问题 I am creating a simple sample auth app with Ionic 2 and angularfire 2 as backend, when i try to create new user it says: EXCEPTION: Error: Uncaught (in promise): Error: The specified authentication provider is not enabled for this Firebase. But i already enabled firebase authentication in firebase console: app.ts import {App, Platform} from 'ionic-angular'; import {StatusBar} from 'ionic-native'; import {HomePage} from './pages/home/home'; import { FIREBASE_PROVIDERS, defaultFirebase,

how to get all child node list values from Firebase database?

天大地大妈咪最大 提交于 2019-12-12 03:35:59
问题 So this is how my database looks like. Each user can add his 3 best players that are stored in userId/My Players/ path as a Map<"Best Players", Player> as it is shown here: List<String> list = new ArrayList<>(); list.add(first.getText().toString()); list.add(second.getText().toString()); list.add(third.getText().toString()); Players players = new Players(list); Map<String, Object> map = new HashMap<>(); map.put("Best Players", players); FirebaseUser user = FirebaseAuth.getInstance()

On hard refresh, $rootScope disappears and cannot access current user

天涯浪子 提交于 2019-12-12 03:34:23
问题 I am using $rootScope to always access the current logged in user. When the user submits a new meal into the system the meal attributes are stored plus the user id who submitted them. This works, but the moment I hard refresh my browser, the $rootScope.user object disappears. How do I prevent that? In app.js I have: $rootScope.user; Here's what happens when the user logs in: Auth.$onAuth(function (user) { if (user === null) { console.log("Not logged in yet"); } else { console.log("Logged in

How to save user's name along with email in firebase? [duplicate]

僤鯓⒐⒋嵵緔 提交于 2019-12-12 03:26:56
问题 This question already has answers here : How do you include a username when storing email and password using Firebase (BaaS) in an Android app? (3 answers) Closed 3 years ago . Firebase saves only email of the user. I want to save his/her name too. How to achieve this? Here's a bit of my code with which I'm creating and logging in the user: public void loginByEmailMethod() { //creating account ref.createUser(email, password, new Firebase.ValueResultHandler<Map<String, Object>>() { @Override

Setting users' own key in Firebase

无人久伴 提交于 2019-12-12 02:50:07
问题 The question is asked already here, but since AngularFire updates their API, the provided solution is not usable anymore. What I am doing is to create new user's account with email/password, store that user in Firebase Authentication service, and store extra information in the database. However, in the Authentication, user has their key as simplelogin:29 , and in the Data, each user has their hashed key, as -JpwB9oUVkeT_XRdiX2V . I do need their keys to be the same. Below is the code to

Firebase user gets logged out after a couple of days

纵然是瞬间 提交于 2019-12-12 02:49:19
问题 I've added email&password, google, facebook authentication in my application. However, I noticed that after some time passes (1,2 days maybe) firebase.getAuth() returns null. Please note that I haven't called firebase.unauth() anywhere in the code, it seems like the authenticated session expires after some time. Is there a way to make the session not expire after few days? I can think of 2 solutions but both seem bad to me: Store custom OAuthToken from Google, Facebook (maybe encrypted),

When to use FirebaseAuth user uid and when to use an E-mail as identifier

有些话、适合烂在心里 提交于 2019-12-12 02:44:45
问题 With This Question in mined here´s a follow up question. Correct me on my assumptions please my learning curve is aggressive :). If making lets say a chat app having Firebase as backend storage, then using the FirebaseAuth.getInstance().getCurrentUser().getUid() uid inside the chat system as a chat member identifier, a bad idea if, you allow users to delete there account, and allowing account linking. The uid would change and that would break the database right? My next assumption now is that

Firebase issuing out 2 different uid's -Swift iOS

99封情书 提交于 2019-12-12 01:42:16
问题 I have all my pods correctly installed. My app launches and then when I get to scenes that have to access Firebase I've noticed there's a crash. The reason seems to be that Firebase is issuing me 2 different uid's and the one in Auth doesn't match the one in the Database. When my app launches in AppDelegate I have code to get the current uid. //This is in App Delegate let myUserID = FIRAuth.auth()?.currentUser?.uid print("App Delegate: UID is \(myUserID!)") //An example print is 'App Delegate