22,546 questions
1
vote
0
answers
20
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
36
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
37
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 = ...
0
votes
1
answer
49
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)...
0
votes
1
answer
63
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 ...
-4
votes
0
answers
57
views
FireBase | Sign in with Google Concept | Ionic + Angular [closed]
I'm using Ionic v8 + angular v20 + capacitor v7 + @capgo/capacitor-social-login v7 + firebase v12
I'm trying to do sign in with google concept using Fire base but it is not woking When I click the ...
0
votes
1
answer
45
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
36
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 ...
2
votes
3
answers
268
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
48
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
52
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
65
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
134
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
92
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
83
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 ...
0
votes
0
answers
114
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
170
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
77
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
106
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
60
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
71
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
76
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
52
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
81
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 ...
0
votes
1
answer
69
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,
...
2
votes
1
answer
62
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 ...
0
votes
1
answer
127
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
109
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 ...
3
votes
0
answers
128
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
153
views
Should the same email be allowed to register with multiple auth providers (email, Google, Apple)?
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 ...
0
votes
0
answers
27
views
Firebase signInWithEmailAndPassword always returns "Invalid credentials" instead of specific errors [duplicate]
I’m implementing login with Firebase Authentication (React + Firebase).
Here’s the flow:
If the user enters an invalid email or password, I want to show a proper error message.
If the user doesn’t ...
1
vote
0
answers
86
views
Flutter Custom Tabs - Firebase Auth with Microsoft Provider doesn't redirect back to the app
I have a problem where if the app (in debug mode) is either freshly opened or freshly installed. If I try to sign in with my provider, it opens the external browser (chrome for example) and it doesn't ...
0
votes
0
answers
47
views
Firebase User Auth Triggers Are Forcefully Deployed On us-central1 region
I specified the deployment region of all my v1 CFs to be europe-west1
import * as functions from "firebase-functions";
functions
.region(environment.DEPLOYMENT_LOCATION)
.runWith({
...
0
votes
0
answers
96
views
40% of Firebase User Registrations Missing Firestore Documents
I'm experiencing a critical issue with my NextJS/Firebase application where approximately 40% of random user registrations result in "orphaned" users - users that exist in Firebase ...
1
vote
0
answers
43
views
Android: FirebaseTokenProvider: No current user when requesting token
After replacing Firebase BOM version 33.1.2 we have started running into issues where authInstance.currentUser returns null although the user has logged in recently. In order to mitigate this, I've ...
0
votes
2
answers
62
views
Firebase Auth + MongoDB: How to clean up anonymous user data when app is deleted from device?
I’m implementing Firebase Auth in a mobile health tracking app to allow Google/Apple login alongside existing email/password, plus anonymous usage for basic features.
Context:
The app helps users ...
1
vote
0
answers
47
views
React Native Dynamic Link being added to sendSignInLinkToEmail even with different url/linkDomain passed in actionCodeSettings
I have been using sendSignInLinkToEmail for Firebase Authentication to send link to login to email. Recently Dynamic Link URLs got deprecated. Hence I have switched to PROJECT_NAME.firbaseapp.com for ...
0
votes
0
answers
51
views
Enforce firestore access for debugging
I have a Flutter app which accesses firestore data in a readonly way, and no user authentication is required for that data. There are some static information in firebase which can be updated without ...
0
votes
0
answers
59
views
Problems with Oauth2 authentication in Firebase Console
I know nothing about code. I have been using the Firebase Console AI to help me build a website. I'm amazed it's working out to be honest, but I have hit a wall. For reasons specific to the app I am ...
0
votes
0
answers
57
views
Firebase signInWithCustomToken failed to fetch client side
Operating System
Mac OS X >=10.15.7, Windows >=10
Environment (if applicable)
Chrome, Safari, Firefox
Firebase SDK Version
^12.1.0
Firebase SDK Product(s)
Auth
Project Tooling
Next.js 14 with ...
0
votes
0
answers
50
views
Firebase emailVerification flag always true
I've recently switched Firebase authentication from the namespaced API to the modular API, and while rebuilding my code I'm finding an issue with email verification.
When a user signs up to the site I ...
0
votes
1
answer
119
views
firebase_auth/channel-error "dev.flutter.pigeon.firebase_auth_platform_interface.FirebaseAuthHostApi.signInAnonymously"
My Flutter app can sign in anonymously in debug but in release the call to signInAnonymously() throws a channel error:
FirebaseAuthException: [firebase_auth/channel-error] "dev.flutter.pigeon....
1
vote
1
answer
65
views
Firebase Auth (default) UI Action bar Overlapping the email/phone fields
In our app, We are using Firebase Auth Login ui and we have two options Sign in with Email and Sign in with Phone number.
As we have to migrated to Android 15+, but android 15+ Action Bar overlapping ...
2
votes
0
answers
71
views
Firebase Phone Authentication returns 503 Service Unavailable for Iraqi phone numbers [closed]
I'm using Firebase Phone Authentication in my web application. The authentication works perfectly with test numbers and other countries' phone numbers (tested with Egyptian numbers), but consistently ...
6
votes
1
answer
236
views
Why can anyone call my Firebase callable Cloud Function via its HTTPS URL, outside my mobile app?
I have a Firebase project with a mobile app (Flutter) that uses callable Cloud Functions. From the app, I invoke them with the Firebase SDK like this:
const functions = firebase.functions();
const ...
0
votes
0
answers
120
views
401 Unauthenticated Error while calling cloud functions in Google Firebase
When I am trying to call a firebase cloud function from my react.js frontend using the onCall method, I am getting a 401 Error getting reply- User not authenticated error. I know this question has ...
2
votes
1
answer
165
views
Firebase Auth currentUser null on cold start due to KeysetManager failed to initialize on Redmi Note 13 HyperOS
I'm developing an Android app using Firebase Authentication (email/password) with Jetpack Compose and Kotlin. The app stores user data locally in DataStore and sets a loggedIn flag to true after ...
2
votes
1
answer
466
views
Firebase Phone Auth > reCAPTCHA Enterprise won't disable after turning off in console (iOS, React Native)
I'm using React Native (iOS) and Firebase Phone Authentication.
At one point, I enabled reCAPTCHA Enterprise from the Firebase Console via:
Authentication -> Phone -> App verification -> ...
0
votes
0
answers
105
views
Firebase Phone Auth on iOS with Silent APNs Doesn't Work - Still Opens Safari (reCAPTCHA)
I’m trying to implement Firebase Phone Authentication on iOS using silent APNs verification, so that users don’t have to deal with the fallback reCAPTCHA flow.
Despite following all Firebase and Apple ...
3
votes
1
answer
80
views
Receiving TOKEN_EXPIRED error using Firebase with Expo on getAuth
In my app, I use expo in order to have both my native app and website in the same codebase.
I login using google auth via the signInWithPopup method from firebase/auth.
I leave my computer for about a ...