Questions tagged [firebase-authentication]

Firebase Authentication provides an API and SDKs, UI libraries and backend services to authenticate users in a Firebase app.

1
vote
0answers
16 views

Watching for Logout in Angular Firebase Authentication

I'm using angular Fire (for Firebase Authentication). I've followed a couple of sample codes and starting to build out my authentication flows. One of the sample codes : @Injectable({ providedIn: '...
0
votes
1answer
9 views

firebase rules write for auth user but delete only its own data

is there a way to let users only delete their own data? auth users can write to FB and read other users data but only can delete theis own data. could it be that write rule includes the delete rule? ...
0
votes
1answer
24 views

why string return null in firebase

//Anom loggin auth.SignInAnonymouslyAsync().ContinueWith(task => { if (task.IsCanceled) { Debug.LogError("SignInAnonymouslyAsync was canceled."); ...
0
votes
0answers
23 views

App crashes after FirebaseAuth.DefaultInstance

I use FireBase authentication with a simple function that signs up a new user, it works great on the Unity Editor, but when I build it on my Android, it crashes the second it tries to read this line- ...
0
votes
0answers
8 views

how get user reference firebase in unity?

i try to get firebase user, but always the user return a null reference, i need another initialization for user? any idea? the code is: public class sendPush : Manager<sendPush> { ...
0
votes
0answers
10 views

Using Provider Inside firebase.auth().onAuthStateChanged return undefined

I try to call to a function that it a part from Provider, but I noticed that when the call is inside firebase.auth().onAuthStateChanged function all the providers are undefined. @Ionic3.9.2 @...
0
votes
1answer
11 views

Creating user node on firebase signup

I am trying to setup my app so that when a user signs up they are added to a 'users' node in the database. I followed this example for how to do it but my program isn't recognizing the userId when it ...
2
votes
0answers
24 views

Is it safe to expose the Firebase user auth uid to the public? [duplicate]

I want to know if it is safe to expose the Firebase auth uid to other users? The Firebase user.uid is returned when a user authenticates with Firebase. This uid is often used in security rules and ...
0
votes
1answer
22 views

Integrating Touch ID with Firebase Auth in React Native

I'm new to React native but I have created a signup / login which uses the react-native-firebase package (based of https://github.com/faahmad/react-native-firebase-auth), I want to incorporate touch ...
1
vote
1answer
12 views

Quota exceeded when updating users with Firebase Admin SDK - how can I request more?

We try to update many users in our multitenant setup, when a whole tenant needs to be enabled/disabled. With this, we sometimes run into QUOTA_EXCEEDED errors, especially for large tenants with many ...
0
votes
0answers
21 views

Unable to convert firebase json export

I am trying to convert my json exported from firebase to excel using online tools but every time it gives an error- Auth token is expired, even though I convert it within 5 mins of export. Please, ...
0
votes
0answers
11 views

Firebase - how to update phone provider email property after it is linked?

In firebase console i have the following account already set up: the issue i have is i want to UPDATE the email address in the PHONE provider. lets say in the gmail account the email address field ...
0
votes
0answers
26 views

Unity+Firebase hangs from user.TokenAsync

Below is my main login block in unity for firebase. It works fine when i get rid of: Debug.Log(user.TokenAsync(false).Result); However due to security i MUST have a way to handle the session. Firebase ...
0
votes
1answer
17 views

Firebase client error: Custom token corresponds to a different audience

I'm using the Firebase Python AdminSDK to generate a custom token which a Javascript client uses to sign in to Firebase. When the JS client tries to authenticate with the custom token it gets the ...
0
votes
0answers
8 views

Firebase Authentication for Email and Password (symbols cannot be resolved)

I am running into issues with the following snippet of code. I followed the tutorial from google firebase but the method is not working. The symbol for signInWithEmailAndPassword and task cannot be ...
0
votes
1answer
11 views

Admin SDK: updateUser with providerData

Is possible to use updateUser() with add more providers in providerData property by admin sdk? I want to implement link accounts feature in restful service.
0
votes
0answers
7 views

HTTP request to delete user from the firebase authentication in PHP

$token = json_decode($this->Common_model->fetch_data('user/'.$id.'/user_idToken' )); $user_refreshToken = json_decode($this->Common_model->fetch_data('user/'.$id.'/user_refreshToken' ))...
0
votes
1answer
13 views

Firebase SMS Password Reset

How can users reset their passwords with a phone number in Firebase IOS? Phone Registration is possible in Firebase but what is if a user is logged out and forgot his verification code? Language: ...
0
votes
1answer
14 views

Firebase Rules: Different between this rules

What is the different between this type of rules? Its look like same, but I really didn't get it. "rules": { "Users": { ".read": true, ".write": "auth !== null && data.child('uid')....
0
votes
0answers
18 views

How does Firebase generates Device Registration Token?

I'm trying to create a python app that pretends to be an android mobile app. The app I'm trying to mimic is using firebase cloud messaging client. and it's using the FirebaseMessaging.getInstance()....
0
votes
1answer
18 views

can't create new children in firebase database aftter setting the rules

I am using firebase database in my app. I have set the rules to allow normal users to create new childs in the node but I found that it's refused. this is the writing rules of the node : ".write":"...
0
votes
1answer
44 views

Firebase Verify with E-Mail and Phone

For a certain area I want to have my user registred and verified with BOTH: his EMAIL adress and his PHONE NUMBER. After email and phone was verified, I link the EMAIL to the PHONE with these lines ...
0
votes
0answers
29 views

Get active user server side with Nuxt (vuejs)- Vuex - Firebase

im trying Firebase autenthication and vuejs with NUXT. Im stuck in how to get the active user server side to deny certain access. Im trying to get the active user in this way ServerSide with vuex: ...
0
votes
0answers
20 views

link Anonymous firebase account to Facebook

I'm trying to solve a problem I have with linking an anonymous firebase user to facebook on the mobile. The code below works fine in the browser, but doesn't work on the mobile. Any help is greatly ...
1
vote
1answer
31 views

Firebase Auth - list of users by Custom Claims

We're using Custom Claims in Firebase Auth to manage access in Firebase and allow custom UI experience. We're now working on the User Admin part and we can't find a way to retrieve users by the ...
0
votes
1answer
11 views

How can I use integrate Google sign in with my existing users?

I'm pretty sure someone must have asked this question before but I haven't been able to find anything to help me figure this out. I currently have a set of users in my database and have my own sign ...
0
votes
0answers
19 views

How to allow users to write in firebase database but prevent them from deleting data?

I am allowing users to write posts in my app. Of course any one can write a post in the app so I making the writing rules auth != Null . But in the other hand I am afraid some one can enter to my ...
0
votes
0answers
27 views

Firebase Warning: Permission denied for a user authenticated as anonymous

Sorry if my question is already answered. I read the official documentation and I did a lot of web searching, but I can't find a solution. I have an application web hosting in Google Firebase showing ...
0
votes
1answer
29 views

How to redirect multiple types of users to their respective Activities?

I am creating a voting app on Firebase. I have 3 types of users. So far i can successfully redirect 2 kinds of users (STUDENTS, TEACHERS) to their respective activities after they login all with the ...
0
votes
1answer
26 views

Null value in FirebaseUser getEmail()

Uh, sorry here cause I need a little help. I checked the web but doesn't seem to find a solution yet. I got an error here: java.lang.NullPointerException: Attempt to invoke virtual method 'java....
0
votes
0answers
26 views

Ionic / Angular / FIrebase : Property 'emailVerified' does not exist on type 'UserCredential'

I have an error, I was trying to create login in Ionic 3 Framework with Angular and Firebase authentication. The problem is I don't know how to fix the error. error message Typescript Error ...
0
votes
0answers
18 views

Flutter Firebase Authentication with External Database

I have a question regarding Firebase in Flutter. Currently I have a web application using its own database and I am developing the mobile application for the web application with the authentication ...
1
vote
1answer
24 views

Add default custom claims to firebase token

We are working on an application that uses firebase for authentication purposes. We implemented the authentication mechanism in our angular application and everything works fine. what we want now is ...
0
votes
1answer
15 views

Firebase Authentication with multi-factor authentication

Is there a way to implement multi-factor authentication on Firebase Authentication? From my research it seems impossible since Firebase authentication has public REST api of which, assumingly, someone ...
-2
votes
0answers
25 views

Save users phone number/location to firebase realtime and read from database [on hold]

I made an app that saves the users location and displays their location on a map with a marker on a google map that dispays where they are at. each user has an indivual marker than is unique to their ...
0
votes
0answers
15 views

Firebase - are credential objects one time use only?

I have logged into firebase Phone provider successfully and have saved a credential (lets call it credential A ) object for that Phone identify provider. Now my question is ...
0
votes
0answers
11 views

How do I find the source of “Program type already present” build errors?

I recently updated the version numbers of my firebase dependencies in my Gradle file (was on 11.4.2 and upgraded everything to 15.0.1 or greater). I keep getting the following build error: Program ...
1
vote
0answers
17 views

Disable changing email in Firebase

Firebase allows users to change their email client side with firebase.auth().currentUser.updateEmail("example@example.com") However, I would like to disable this feature entirely - obviously, I ...
0
votes
1answer
13 views

Firebase - Cloud Firestore, Problems creating rule for admin

Im having a problem with creating firebase rules, I created a field "role" in my 'employees' collection, so there, I want to distinguish each type of users allowed to read/write, etc in the DB. My ...
0
votes
0answers
14 views

Firebase tokens expiration and best practice for handling refresh tokens

I am currently using Firebase on a client application (Cordova based mobile app) using the firebase user authentication methods on the client: signInWithEmailAndPassword FacebookAuthProvider From my ...
0
votes
1answer
21 views

What does the Firebase Authentication error code 33 FIRAuthInternalErrorDomain mean?

Phone number authentication works correctly on Xcode simulator but not on my iPhone. I assume this has something to do with the silent notifications being sent since the simulator uses CAPTCHA instead....
0
votes
0answers
23 views

Firebase client sdk config in client side cause risk

I'm new with firebase, but after I came across to the firebase client sdk (especially the authentication feature), I detect that we put all the firebase config in client side (where any user can ...
0
votes
1answer
18 views

Firebase Cloud Firestore rules not working

This is my firebase rule, i want to allow only the document 'owner' to read, write, etc, in his own document. service cloud.firestore { match /databases/{database}/documents { match /employees/{...
0
votes
0answers
24 views

Not receiving password reset mail Firebase

Image trying to implement a "forgot password" function in my app. But the reset mail is not being sent. Is the code wrong? Or do I have to set up something in Firebase in order for this to work? ...
0
votes
0answers
12 views

NodeJS and Firebase authentication error. Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client

I am building a web app with NodeJS, using Firebase for authentication and I am encountering an error when testing the app. If an user signs in the app everything works fine, but when I trying to ...
0
votes
1answer
37 views

ClassNotFoundException: unable to find class “android.support.v4.util.ArrayMap”

The signed apk of my app runs on the android versions higher than 5.0.1 but I am facing this issue that my app crashes immediately after launching the app on version 5.0.1 and this is the error I get -...
0
votes
1answer
29 views

Can an offline user carry out database transactions specific to their uid in Firebase Realtime Database?

The situation: User starts the app with no internet connection. I attempt to authenticate them anonymously in my launch activity and perform a database write to the reference '/users/$uid', in a ...
0
votes
0answers
12 views

Securing Firebase realtime database granting access to Android wear devices

I have a firebase realtime database that is accessed mostly by Android Wear devices running a standalone application. As of today, Android Wear devices do not support Firebase Authentication. Yet ...
-1
votes
1answer
42 views

I need to know why my app's activities with firebase auth keep crashing even though i have followed the official documentation? [closed]

import android.content.Intent; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; ...
0
votes
0answers
8 views

Why firebase phone auth requires a custom URL scheme to be registered in Xcode?

If my understanding is right, custom URL schemes are registered to launch the app using a different url. For example: if custom scheme foo is registered, then the app can be launched using foo://<...