firebase-authentication

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

核能气质少年 提交于 2020-01-23 07:04:49
问题 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 users. I have asked how to do this better here: Disable many users at once As there are currently no bulk operations to update users with the Firebase Admin SDK, how can I request a quota raise? I do not see an enable/disable users in the Firebase Authentication Limits The error message does not

Firebase Error: Auth error from APNS or Web Push Service

大城市里の小女人 提交于 2020-01-23 07:04:05
问题 After running the following line in node-js: import * as admin from "firebase-admin"; import * as serviceAccount from "../../firebase_service_account_key.json"; const app = admin.initializeApp({ credential: admin.credential.cert(serviceAccount as any), databaseURL: "https://my-app-path.firebaseio.com" }); admin.messaging().send({ token: "known-good-token", notification: { title: "Test Push Note", body: "Here is some text" } }); I'm getting the error: Error: Auth error from APNS or Web Push

I'm getting an error “Error type 'AuthResult' is not a subtype of type 'FirebaseUser' in type cast” when I'm trying to login or signup

删除回忆录丶 提交于 2020-01-23 05:29:12
问题 I'm making a flutter app for my college project, where I'm adding a login and signup page and authenticating it via Firebase, and when I click login the debug console says "Error type 'AuthResult' is not a subtype of type 'FirebaseUser' in type cast" and when I reload the app after this error it successfully logs in. Everything was working best before the update of the firebase_auth package to 0.12.0 after this update, the methods "signInWithEmailAndPassword()" and

Firebase - How to check whether a user has already signed up using Phone Number

◇◆丶佛笑我妖孽 提交于 2020-01-23 04:45:12
问题 I am using firebase phone Authentication . When a user creates a account using phone number and next time he creates account with same phone number Than I want to show a message saying account already exists 回答1: In order to detect whether that phone number has already been used for account registration, you can't only rely on the default authentication table. But also has to use the Firebase database to create a Dummy user table for checking . For example, you can create a json tree to save

using firebase admin sdk on a web client

对着背影说爱祢 提交于 2020-01-23 03:12:06
问题 I need to use the firebase admin sdk to authenticate myself on the back-office of my project. using the sdk on the server side is working just fine. but with a reactjs component (a chat component) to chat between web client and a mobile app, the sdk is not working displaying the following error: Uncaught TypeError: rtdb.initStandalone is not a function at DatabaseService../node_modules/firebase-admin/lib/database/database.js.DatabaseService.getDatabase Has anyone tried this before or is it

Firebase phone auth flutter crash

百般思念 提交于 2020-01-22 19:16:48
问题 When I run this code on the simulator or on a real device (iPhone SE), the app is just stopping when I press the "confirm" button. When I try to put some breakpoint in debug mode, it does not stop the app at the breakpoint. Finally, I do not get any exception during the running or even when it freezes. So I am asking for your help, thanks in advance. import 'dart:async'; import 'package:flutter/material.dart'; import 'package:firebase_auth/firebase_auth.dart'; import 'package:chart_test

Firebase phone auth flutter crash

耗尽温柔 提交于 2020-01-22 19:16:46
问题 When I run this code on the simulator or on a real device (iPhone SE), the app is just stopping when I press the "confirm" button. When I try to put some breakpoint in debug mode, it does not stop the app at the breakpoint. Finally, I do not get any exception during the running or even when it freezes. So I am asking for your help, thanks in advance. import 'dart:async'; import 'package:flutter/material.dart'; import 'package:firebase_auth/firebase_auth.dart'; import 'package:chart_test

React - Firebase - GoogleAuthProvider is not a constructor

二次信任 提交于 2020-01-22 17:36:46
问题 I am trying to create a React application that uses a "Login with Google" button to trigger signInWithPopup(provider) . However each time I call new firebaseApp.auth.GoogleAuthProvider() my console returns an error. I am simply trying to console.log() the result . error Uncaught TypeError: _firebase_setup2.default.auth.GoogleAuthProvider is not a constructor firebase_setup.js import * as firebase from 'firebase'; const firebaseConfig = { apiKey: "AIzaSyAKlWtFZvbvuNy2qC68Xt5xzaTQVyy9l2o",

java firebase-admin cannot log user in and get token no client

断了今生、忘了曾经 提交于 2020-01-22 02:57:09
问题 I have no front end. I want users to use my API e.g (postman) with a basic auth header (email:password) and then using this header I can get the users data from firebase. however I find no method to authenticate the actual user? <dependency> <groupId>com.google.firebase</groupId> <artifactId>firebase-admin</artifactId> <version>6.11.0</version> </dependency> I have correctly connected to DB using FileInputStream serviceAccount = new FileInputStream("path/to/serviceAccountKey.json");

How can i make FirebaseAuth.AuthStateListener work in Kotlin?

徘徊边缘 提交于 2020-01-22 02:20:20
问题 class LoginActivity : AppCompatActivity() { private val firebaseAuth = FirebaseAuth.getInstance() private val firebaseAuthListener = FirebaseAuth.AuthStateListener { val user = firebaseAuth.currentUser?.uid user?.let { startActivity(HomeActivity.newIntent(this)) finish() } } override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_login) loginProgressLayout.setOnTouchListener { v, event -> true } } fun onLogin(v: View) { var