Questions tagged [firebase-authentication]
Firebase Authentication provides backend services, easy-to-use SDKs, and ready-made UI libraries to authenticate users to your app.
22,424
questions
0
votes
1
answer
10
views
After login, how do I redirect to homepage and then reload it?
My webpage requires to reload every time to update user state.
As to the problem, in the handleLogin func, the page should be redirected to homepage ('/') and refresh itself, so that the user state is ...
1
vote
2
answers
48
views
getSignedURL() called from firebase cloud function gives permission denied error ( firebase-functions v2)
I need to download html pages only for authenticated users, pages are stored in "Firebase Storage" as html.
I get the right action by using the bellow firebase cloud function (v2) (...
0
votes
3
answers
35
views
Delete Google account users in Firebase
I have an app in Flutter with Firebase login, I provide the option to delete a regular user with email and password but how can I delete a user that signed in with Google, should I deal with it or ...
0
votes
0
answers
11
views
Flutter Error Method not found FallThroughError throwFallThroughError
I am working in a already developed project and unable to install the application.
And getting this error
Error: The method 'FallThroughError' isn't defined for the class 'ActionCodeInfo'.
'...
1
vote
1
answer
64
views
+100
How to implement 2FA in Laravel with Inertia.js and Vue 3?
I am working on a project using Laravel, Inertia.js, and Vue 3, and I want to implement two-factor authentication (2FA) for user login. My setup includes a MySQL database with a users table that ...
0
votes
0
answers
43
views
Deployed React App on Firebase-Hosting keeps crashing after a few days
I had deployed my React App (which uses Firebase Auth and Firestore) on Firebase hosting. It worked fine for a few days but then suddenly started showing this.
I think it might be due to some package ...
0
votes
0
answers
18
views
Flutter how to login with Facebook Authentication with Firebase?
I'm using Firebase Authentication with Facebook Auth I installed this package
flutter_facebook_auth: ^6.2.0
and that's my code
final LoginResult loginResult = await FacebookAuth.instance.login();
...
154
votes
31
answers
172k
views
Why do I get com.google.android.gms.common.api.ApiException: 10:?
private void handleSignInResult(Task<GoogleSignInAccount> completedTask) {
try {
GoogleSignInAccount account = completedTask.getResult(ApiException.class); //exception is here
...
40
votes
3
answers
19k
views
Firebase Convert Anonymous User Account to Permanent Account Error
Using Firebase for web I can successfully create an anonymous user. I can also create a new email/password user. But when trying to convert an anonymous user to a email/password user I get error:
...
0
votes
1
answer
6
views
Connecting Clerk SVIX Webhooks to Firebase HTTPS Cloud functions
Scenario: You have a NExtJS project using clerk for authentication. You want to hook it up to Firebase via google cloud functions and Clerk Webhooks for proper user management. How do you do it.
SVIX ...
0
votes
0
answers
16
views
How to implement Authentication in React.js?
I am beginner in web dev and i have a some question about the authentication in react.js.
When we send post request on the api for login, if username + password = correct then they return jwt token so ...
0
votes
3
answers
27
views
Firebase Realtime Database REST API returns Unauthorized, even with token
I'm writting a Blazor Server app that connects to Firebase Realtime Database. I'm using the FirebaseDatabase SDK but need to perform a set of Atomic operations updating multiple Paths. Since the SDK ...
5
votes
3
answers
9k
views
firebase auth is not a function
I got this TypeError: WEBPACK_IMPORTED_MODULE_4__firebase.c.auth is not a function
The line i got an error is the first line.
firebase.auth().createUserWithEmailAndPassword(email, password).then(...
0
votes
0
answers
25
views
Firebase sign out permissions error in android application?
I am getting permissions error every time i try to log out in kotlin android project which uses firebase firestore and firebase auth. I am even terminating DB when try to sign out and it still doesn'...
63
votes
9
answers
82k
views
How to change email in firebase auth?
I am trying to change/update a user's email address using :
firebase.auth().changeEmail({oldEmail, newEmail, password}, cb)
But I am getting ...changeEmail is not a function error. I found the ...
0
votes
0
answers
14
views
flutter app OTP screen not showing after receiving OTP from firebase
This screen appear after entering mobile number
i have created an app using flutter in my app i am using firebase phone authentication after developing my app i put my app in playstore i try to remove ...
1
vote
4
answers
6k
views
Flutter firebase logged in user returns a NULL currentUser after sign in
When authenticating in firebase using the signInWithEmailAndPassword() API, I am unable to get a valid "current" user.
I sign into the application with user name and password
auth....
41
votes
9
answers
42k
views
Firebase Error: Auth error from APNS or Web Push Service
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({
...
3
votes
2
answers
893
views
FATAL EXCEPTION: firebase-installations-executor-2 (Android)
This crash is only happening when the app is downloaded from the Play Store. The activity opens up and stays fine for a few seconds but just after that.. this is happening:
2022-02-12 22:32:50.927 ...
-1
votes
0
answers
18
views
problem during intializing firebase while debugging the app in my oppo phone [closed]
I am running a flutter app in my phone in debug mode.The issue I am facing is "api_key" has null value.But I am able to see the api_key in the google json file.Due to this I can't initialize ...
0
votes
0
answers
25
views
Firebase: This operation is restricted to administrators only. (auth/admin-restricted-operation)
I am implementing a login authentication function with Firebase email and password.
I have managed to log in, but I get the following error whether I can log in or not. I am not sure what is wrong, so ...
3
votes
2
answers
4k
views
Firebase Auth Apple Sign In for Web "INVALID_CLIENT" error?
I'm using firebase to implement Sign in with Apple on my React web application. I have created an AppID, Service ID with Sign in with Apple enabled. Created a Key, configured and completed the ...
1
vote
1
answer
156
views
Firestore Multi-Group Permission Management
Can Firestore security rules manage security permissions across multiple groups?
For example, suppose there are individual users Group1 and Group2.
Group1 {
groupId: string
groupMembers {
...
0
votes
0
answers
13
views
Deploying firebase nextjs to vercel not working
TypeError: Cannot read properties of undefined (reading 'email')
at c (/vercel/path0/chat-firebase-next/client/.next/server/pages/ChatsPage.js:1:2385)
at Wc (/vercel/path0/chat-firebase-next/...
0
votes
0
answers
244
views
How to import oauth users from Clerk to Firebase Auth
I have a full database of users that signed up while I've been using Clerk for auth. I'm thinking about migrating to Firebase for auth. If I wanted to do so, would i be able to import all these users ...
0
votes
1
answer
36
views
Google sign in not working in release version after adding sha keys from google console
I have this error after creating release version: PlatformException(sign_in_failed, com.google.android.gms.common.api.b: 10: , null, null).
I know that 10 means that it is developer error which most ...
3
votes
4
answers
3k
views
Firebase authentication issue - An internal error has occurred, print and inspect the error details for more information
I have used Firebase authentication to receive an OTP for the verification of the user. For that, I have used following method,
PhoneAuthProvider.provider().verifyPhoneNumber(phoneNumber, ...
0
votes
0
answers
14
views
Removing reCAPTCHA challenge during Firebase SMS verification in Flutter app for Android and iOS
I'm developing a Flutter app that utilizes Firebase phone number authentication for user verification. However, during the SMS verification process, users are encountering reCAPTCHA challenges, which ...
0
votes
0
answers
18
views
Enable Google Sign In in different Firebase projects based on build type
I have two build types for an Android app, Release and Staging. The Release build targets the production environment, while the Staging build targets the development environment. Both builds are ...
0
votes
0
answers
25
views
Write to Firebase Realtime database: permission denied
I have a very simple website with a Firebase Realtime backend. I want everyone to be able to see the database, and only authenticated users to be able to write. My security rules are:
{ "rules&...
0
votes
1
answer
31
views
Value of type 'GIDSignIn' has no member 'clientID'
enter image description here
I'm trying to set my client ID for Google Sign-In by assigning it to 'GIDSignIn.sharedInstance.clientID = "YOUR_CLIENT_ID"', but I'm encountering an error ...
1
vote
4
answers
728
views
Firebase authentication provider silently changes from password to google.com
I use firebase authentication for my web app with three providers: email-password, google, or facebook. I have enabled the option "One account per email address".
When a user signs up using ...
1
vote
1
answer
53
views
Firebase Auth Exception not caught by catch
When signing in with wrong credentials an Exception is thrown as expected. However, the catch block fails to catch the Exception resulting in a crash.
Exception has occurred. FirebaseAuthException
([...
6
votes
2
answers
672
views
Firebase Auth, Failed resolution of: Lcom/google/android/gms/auth/api/credentials/CredentialsOptions$Builder
I'm a beginner trying to learn to use firebase auth with android compose
I'm following the code on https://firebase.google.com/docs/auth/android/firebaseui to create a signInLauncher but I'm getting ...
0
votes
2
answers
664
views
Firebase V9 - "INTERNAL ASSERTION FAILED: Expected a class definition" on React Native app
I am developing a react native app with firebase authentication using V9 SDK. Everything is working fine except when I want to add persistence in authentication.
I've tried multiple ways to add it but ...
0
votes
0
answers
34
views
How do I upload a large number of small files in Firebase when a new user is created?
I'm currently writing a Firebase function that creates a bunch of new blobs in cloud storage for each new user when they first sign up.
const functions = require('firebase-functions');
const { ...
0
votes
0
answers
25
views
Microsoft SSO, Android. press "continue", does nothing. React native firebase
Problem
React native Firebase, Microsoft SSO for Android.
When I attempt to sign in, and press "continue" it does nothing.
After pressing continue 5 times, message of too many attempts shows ...
0
votes
1
answer
22
views
Does Firebase Authentication offer a page for deleting user accounts?
I am using Firebase Authentication in my Android app. Google is asking me for a URL where users can delete their account. Before I create a page and host it myself, I was wondering if Firebase offers ...
-1
votes
0
answers
26
views
How to implement email and password login and google sign in at the same time in Flutter Firebase?
I have this problem with log in logic in my flutter app. My idea is to log in with the email and password and google provider at the same time, but if I register my user with email and password and ...
0
votes
1
answer
50
views
Both if-else block is getting executed
I have made session manager in this activity . If the user is logged in , then It will be redirected to the Home Activity and if not then to the fragment EmailSignIn But somehow , Both the blocks of ...
-1
votes
0
answers
21
views
GIDSignInButton is not working how can i fix this?
I am learning Swift and I want to add a login with google button to my application, but when I press the login with google button on the application, nothing happens.
AppDelegate
func application(_ ...
0
votes
1
answer
32
views
How to change email for firebase users?
Now that updateEmail is deprecated for updating the Firebase user's email, how to update the user's email?
final user = GetCurrentUser().getUser()!;
AuthCredential credential = EmailAuthProvider....
-1
votes
0
answers
21
views
The verification code is not sent to me when using the phone number verification [closed]
The verification code is not sent to me when I use the phone number verification service on Firebase in the country of Yemen, knowing that there are no errors in the code for the flutter
no no try any ...
0
votes
1
answer
27
views
Unable to sign in a new user that was created using node js and firebase-admin
Goal: create a user and sign in after that. simple as that.
I created the user usinf nodejs and firebase-admin with the standard function that work just fine:
createUser: function (fullName, email, ...
25
votes
10
answers
18k
views
This is a most likely a transient condition and may be corrected by retrying with a backoff
I'm using firebase in my project and i got some issues mentioned below -
[cloud_firestore/unavailable] The service is currently unavailable.
This is a most likely a transient condition and may be ...
23
votes
2
answers
7k
views
Firebase Auth - How Long is Recent Login
I have a profile tab in which a user can press edit and edit their profile. I only want to require their password if I have to. So wanted to know how long is how many milliseconds of a user being ...
-3
votes
0
answers
29
views
How to correctly connect firebase with ESP8266 and configure it?
I am encountering this error while trying to connect to firebase:
Compilation error: no match for 'operator=' (operand types are 'firebase_auth_signin_token_t' and 'char [40]').
C:\Users\farah\...
0
votes
0
answers
47k
views
"Could not build module 'xxxx'" in Swift [closed]
Forgive me for any vagueness or incorrect parts throughout this explanation. I do work in IT as a network engineer but I don't code really ever. So while I'm slightly in over my head right now, I'm ...
0
votes
0
answers
9
views
Pyrebase does not return credentials
I was working for firebase login system using pyrebase, and I found that auth in the code below does not work correctly.
'apiKey': "",
'authDomain': "",
'...
0
votes
0
answers
28
views
Sign in with Google aborts after login dialog
I'm trying to intiate google sign in through firebase . When I click on google sign in button , dialog box appears for me to choose from which account i have to login but after that this operation ...