22,483 questions
0
votes
2
answers
66
views
Is it "expensive" to check if a user exists in Firebase, every call?
I have a Laravel backend that I'm using for my Flutter app on android and iOS. I'm using Firebase for auth, and the token lives for about an hour.
The problem I have right now is that you need to be ...
0
votes
1
answer
71
views
Firebase App Check debug token returns 403 "App attestation failed" on iOS Flutter app — misleading error hides API key restriction [closed]
Problem
After enabling Firebase App Check enforcement on Firestore, Storage, and RTDB, my Flutter iOS debug build fails to obtain an App Check token. All Firestore listeners fail with "Missing or ...
-1
votes
0
answers
54
views
Firebase Google Auth signInWithRedirect results in a blank white screen on custom domain [closed]
I am building a web application using React (Vite) and Firebase Authentication. I am facing an issue where Google Login works fine on localhost, but on my custom domain, it stucks on a blank white ...
0
votes
1
answer
56
views
Unresolved reference 'await' and 'user' in Firebase Auth (Kotlin Multiplatform / AndroidMain)
I'm working on a Kotlin Multiplatform (KMP) project and I'm trying to implement a Firebase Authentication DataSource inside androidMain. Even after adding the Firebase dependencies, the compiler ...
-2
votes
0
answers
62
views
How to enable Firebase Authentication and add providers using the CLI [duplicate]
Is it possible to enable Firebase Authentication and add providers like Google, Apple, email auth using CLI?
This is important for agentic workflow. This is the only blocker to agent to completely ...
-3
votes
0
answers
59
views
Flutter Web - Firebase Phone Auth reCAPTCHA Enterprise fails with "invalid-app-credential" error
Firebase Phone Authentication in Flutter Web. reCAPTCHA Enterprise verification fails and falls back to v2, which also fails.
Failed to verify with reCAPTCHA Enterprise. Automatically
triggering the ...
0
votes
1
answer
87
views
How can I configure an Angular application hosted in Firebase to correctly handle the Google auth handler URL?
I have an Angular application hosted in Firebase, and I am currently using Google as a sign-in provider. The actual authentication logic works fine when I use the default Firebase authDomain (https://...
Best practices
0
votes
0
replies
90
views
FIrebase + expo+biometrie auth persistance
I am looking to implement an efficient and secure solution to manage authentication persistence in a mobile application, while also allowing the use of biometrics to simplify user re-authentication.
...
0
votes
0
answers
57
views
FirebaseAuth Error - This app is not authorized to use Firebase Authentication: verify the correct package name, SHA-1, and SHA-256 are configured [duplicate]
I'm Getting The Error Below on Both real Device and Simulator that the app is not authorized to use Firebase Authentication. The correct package name, SHA-1, and SHA-256 are configured in the Firebase ...
1
vote
1
answer
285
views
Flutter Firebase Google Sign-In works locally but fails on Google Play review with “Something went wrong. Please try again.”
I have a Flutter app that uses Firebase Authentication with Google Sign-In. The app works perfectly on my local device and emulator, but when I submitted it to Google Play Console, the app was ...
2
votes
0
answers
63
views
Expo/React-Native Microsoft Authentication connection to firebase backend
I am trying to use firebase Oauth Microsoft Authentication in my expo-dev-client with react-native. no typescript. I keep on getting issues where there is an unmatched route and a long hash that ...
0
votes
0
answers
91
views
React native crashes after bundling
I recently upgraded a React Native app from expo 49 to 54. The app uses firebase authentication. The app crahes without any error message in the console. It only shows the error on the screen.
Here is ...
1
vote
1
answer
133
views
FIREBASE_CONFIG vs. GOOGLE_APPLICATION_CONFIG
I am working on setting up Firebase and Authentication using the Admin SDK library. Initially I set the FIREBASE_CONFIG env variable and resulted in
Error getting Auth client: google: could not find ...
0
votes
1
answer
99
views
Operation is not allowed - firebase phone verification code
I'm trying to build a phone number OTP verification system using Firebase and Android Studio using Java.
I've set up the things in Firebase, the SHA-1 and SHA-256, and the phone sign-in method is ...
0
votes
0
answers
95
views
Flutter Firebase Realtime Database .once() hangs on cold start after signInAnonymously()
I have a Flutter application which uses Firebase anonymous auth and Realtime Database.
On app startup, it should automatically log in, check some settings (working hours) and navigate to the next ...
0
votes
1
answer
96
views
Getting 405 Error when Login button is clicked
I'm creating a Login page for my Chocolate Shop Personal project but I'm trying to get it working with Firebase in which I've connected it to. However, I should be getting either an error logging in ...
0
votes
1
answer
65
views
How to avoid "zombie" Firebase anonymous users when linking Sign in with Apple?
I was wondering what would be a solid flow to prevent multiple Firebase anonymous users from being created on a single device.
We currently use the following API to create an anonymous user:
Auth.auth(...
Advice
0
votes
3
replies
78
views
SignInWithPassword has exceeded quota limits
I was developing an Android app using Firebase, but I end up with an error message that says:
2025-12-28 10:26:29.681 10326-10326 MainActivity com.tritongames.shoppingwishlist D Sign ...
1
vote
2
answers
102
views
Firebase CloudFirestore rules only work after reopening the app
I'm using Firebase Authentication and Firebase Cloud Firestore for my Flutter project. But the rules I implemented in the Firestore only apply correctly after restarting the app, if the user just ...
1
vote
0
answers
161
views
what are the keys created by firebase used for: "Key for Identity Platform reCAPTCHA integration"
Firebase automatically creates keys in google cloud recaptcha, when identity platform is picked for auth. Those keys are named: "Key for Identity Platform reCAPTCHA integration" and can be ...
0
votes
1
answer
104
views
AUTH FAIL when calling Firebase function with Gemini AI/Embedding/Sentiment score
This is the error im getting in console, in flutter console when testing, I get UNAUTHENTICATED. However, I'm able to login to the app, and make other calls like getting data from Firestore, etc.
In ...
2
votes
0
answers
183
views
What domain to add to Firebase Authentication for Firebase Studio with Google Auth?
I'm using Firebase studio to generate a small app, with Google Auth enabled. The app shows up fine, but when trying to use the Google Auth, like this:
async function logInWithGoogle(auth: Auth) {
...
0
votes
0
answers
86
views
iOS Firebase appears to hang due to StoreKit (which isn't being used)
In the past few weeks something apparently has changed with xcode/Apple which is causing our iOS regression tests to hang on authentication using Firebase.
Googling the interleaved log error Error ...
1
vote
0
answers
73
views
Getting Firebase Auth custom claims in SSR application server-side
I want to get the custom claims for a user in a react-router app on the loader/action that run on the server. To do that, I am calling the User's method getIdTokenResult(false):
const authIdToken = ...
1
vote
1
answer
220
views
How to change project name shown in Google Sign-In popup?
I have a frontend and a separate backend project. We use our own authentication system, and Firebase is used only for Google Sign-In.
The flow is:
Frontend uses Firebase to sign in with Google (popup)...
-1
votes
1
answer
92
views
Firebase Missing or invalid credentials
From firebase i tried to git push, the authentication screen opened after entering credentials its redirected to my local machine, but the terminal is waiting for code, I tried pasting the code from ...
0
votes
1
answer
84
views
Flutter iOS WebView doesn’t trigger password-reset request when opened from second WebView (Android works fine)
I’m working on a Flutter app that integrates an external authentication system provided by another company. The login and password-reset flows are handled entirely inside a WebView (their backend + ...
0
votes
1
answer
329
views
Firebase Functions v2 onCreate user [duplicate]
I can not for the life of me figure out why this is complaining. I was able to make an onCall function just fine (removed it here)... but when I make a firebase auth onCreate function, the get the ...
1
vote
4
answers
2k
views
Flutter Google Sign-In [16] Account reauth failed on Android — need help troubleshooting
I’m trying to implement Google Sign-In in my Flutter app using google_sign_in: ^7.2.0 and Firebase Authentication, but I keep hitting the following error after selecting a Google account:
...
0
votes
0
answers
67
views
Can you bypass Safari popup when signing in with email link to Firebase on iOS with React Native?
I’m trying to get Firebase email link sign-in working smoothly on iOS.
The link users get in their email comes from projectname.firebaseapp.com/__/auth/links?link=..., which then redirects to my ...
0
votes
0
answers
93
views
Persistent Firebase "auth/unauthorized-domain" error despite domain being correctly added in a dynamic environment
I'm developing a React web application using Firebase for authentication (Google Sign-In) and Firestore. I'm running into a persistent auth/unauthorized-domain error that I can't resolve, despite ...
0
votes
0
answers
71
views
Firebase signInWithRedirect always returns null after redirect
I am using Firebase Authenticatioin in my svelte app.
I called getRedirectResult in onMount and if it returns null, then, I call signInWithRedirect and getRedirectResult again.
I confirm that the page ...
2
votes
3
answers
159
views
Getting user properties from Firestore in Flutter app
I am trying to get several details from the collection "users" (eg, name, surname, nickname) stored in Firestore with the function getUserData() to pass them to other classes through the ...
0
votes
0
answers
152
views
Can't connect to firebase auth emulator
I successfully had the firebase auth emulator working a few days ago, but it has mysteriously stopped working. I get a generic network error when trying to authenticate with any platform. I am using a ...
0
votes
1
answer
90
views
How do I exchange a service account for a tenant encoded token
Using identity platform I'd like to exchange a service account for a tenant encoded token. I need to do this because our GitHub action needs to make use of our cli tool which requires sign in by a ...
1
vote
0
answers
273
views
Need help: "2 Unkown: Getting metadata from plugin failed with error: Could not refresh access token: Request failed with status code 500"
I have begun creating an application (Next.JS running on Firebase App Hosting) in Firebase Studio using Gemini and everything was working fine until now that I got a notification about "Client ...
0
votes
1
answer
210
views
Is it possible to get Google Calendar API access token directly from Firebase GoogleAuthProvider?
I'm using Firebase Authentication to log in users with Google in my web app. I want to access Google Calendar API on behalf of the user.
Currently, Firebase gives me a Firebase ID token and a ...
1
vote
0
answers
135
views
Flutter Firebase Auth crash on Windows with warning “message from native to Flutter on a non-platform thread”
I’m getting a crash and can’t seem to find any clear solution online. My Flutter app uses Firebase Auth (along with Firebase Core and Storage), and everything works fine on some Windows devices, but ...
1
vote
1
answer
136
views
GoRouter doesn’t redirect - after logout stays on protected page
Problem: I’m using GoRouter with a GoRouterRefreshStream that listens to my AuthCubit.stream (Cubit emits states like Authenticated, UnAuthenticated, etc.).
Everything works fine when logging in or ...
0
votes
1
answer
68
views
Is there a remote, administrative way to force mobile Firebase Email Sign In links to use a custom domain?
My React Native app (Android and iOS) uses Firebase Email Sign In links for authentication.
The app is configured to handle links that begin with a Custom Domain, which is registered and hosted by ...
1
vote
0
answers
135
views
Firebase Auth blocking function (Gen-2 / Cloud Run) returns 403 “not authenticated” from Identity Platform, despite Run Invoker granted
I am using Firebase Authentication blocking functions (Gen-2) with Cloud Run services for:
• beforeUserCreated
• beforeUserSignedIn
Problem
When Cloud Run security is set to Require authentication ...
0
votes
1
answer
81
views
Unexpected reads from Firestore upon signing in [duplicate]
14 Reads After the Login:
Query Insight at the time of Log In:
I am using basic email-password && google sign-in in my app. no other module yet. In my users collection there are only 3 ...
0
votes
1
answer
61
views
Firestore security rules: allow read only if custom claim pst is "true" or not present
I’m building a web app where users sign in with a Firebase Authentication custom token. The token has claims like this:
{
"iss": "------",
"sub": "------",
...
0
votes
0
answers
87
views
google auth + firebase hosting + nextJS: State cookie was missing
I am developing an app in nextJS using next-auth for authentication. So far I only have Google as provider. The app is hosted using firebase hosting.
Running the app in localhost works fine, but when ...
-1
votes
1
answer
95
views
Failed to send SMS: Firebase: Error (auth/argument-error) on Phone Auth React Native Expo
I am building an app in react native expo using a custom development build
When i try to send a code it says Failed to send SMS: Firebase: Error (auth/argument-error)
import {
linkWithCredential,
...
1
vote
1
answer
87
views
Does firebase auth automatically logout if change from native android/ios to flutter?
I have existing playstore and appstore app builds in using native android kotlin and native ios swift. And then now i want to migrate those into flutter. Does the existing logged in/authenticated user ...
2
votes
1
answer
210
views
Firebase Auth loses authentication state on Android app restart - user gets logged out when app is killed and reopened
I'm developing a Flutter app using Firebase Auth, and I'm experiencing a persistent issue where users get logged out every time they close the app completely (kill from recent apps) and reopen it. The ...
1
vote
0
answers
120
views
FirebaseAuthException ([firebase_auth/internal-error] An internal error has occurred, print and inspect the error details for more information.)
I have firebase authentication with email/password sign-in. Normally it is working just fine when we make the call
await user.sendEmailVerification();
and it sends the email using the template in the ...
6
votes
0
answers
211
views
Flutter Firebase Auth user not persisted on Android Play Store release — works in debug & on iOS [closed]
I'm using Firebase Authentication in a Flutter app. On iOS everything works perfectly — once a user logs in, they're remembered and automatically authenticated on every app launch.
On Android, however,...
0
votes
2
answers
265
views
Should the same email be allowed to register with multiple auth providers (email, Google, Apple)? [closed]
I am building an authentication system for my app (NestJS backend + Firebase for auth).
The app will support three sign-in methods:
Email/Password
Google Sign-In
Apple Sign-In
My question is about ...