22,553 questions
0
votes
0
answers
59
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 ...
-4
votes
0
answers
49
views
Please suggest how to set Apple Sign In to Firebase with Flutter [closed]
I am developing mobile application for Android & iOS via Flutter
As I have been fixing for Apple sign in, it still persists this below error.
flutter: [AppleSignIn] Failed at step: AppleSignInStep....
0
votes
0
answers
83
views
Firebase Error: "API key not valid. Please check your configuration" [closed]
I’m building my mobile app using React Native with Expo and Firebase.
When I initialize Firebase I get this error:
FirebaseError: Firebase: Error (auth/invalid-api-key).
My config file looks like ...
0
votes
1
answer
69
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
81
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
113
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
56
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
88
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
49
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
52
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
45
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
75
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
63
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
49
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
106
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
78
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 ...
2
votes
0
answers
104
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
127
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
24
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
77
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
44
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
92
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
59
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
44
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
46
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
49
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
48
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
106
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
57
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
68
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
221
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
119
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
146
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
415
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
103
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
66
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 ...
0
votes
1
answer
66
views
Firebase Functions v2 onCall() returns 401 Unauthorized—even though request.auth is valid and proper IAM role assigned
I’m facing a puzzling issue with a Firebase callable function (onCall) deployed via Cloud Functions v2 (on Cloud Run, Node.js 18/20). Even though:
the client is signed in (getAuth().currentUser is ...
0
votes
0
answers
42
views
Firebase/auth mock with JEST is not recognised
Im trying to test an error state which get updated when no foundEnterprise match is found:
async function onSubmit (data) {
try {
const enterprisesData = await fetchData()
const ...
0
votes
1
answer
56
views
Convert anonymous Firebase Auth session on TV client to a signed‑in user via a separate authenticated client?
I’m building a multi-platform healthcare app where:
Mobile & Web portal share the same Firebase backend and allow individual doctors to view a single patient stream at a time.
Android TV client (...
0
votes
1
answer
179
views
Firebase not initialized although code for initializing is called
I have an Android Java app with Firebase RealtimeDatabase and I want to initialize Firebase such that later I can delete old entries. In the onCreate method I use the following code
FirebaseApp....
1
vote
0
answers
121
views
Does Firebase Authentication support IdP-initiated login with SAML or OIDC?
I'm integrating SSO into a Firebase project using external Identity Providers (IdPs) like Okta. I've successfully implemented Service Provider (SP)-initiated login flows using both SAML and OIDC, ...
0
votes
1
answer
59
views
Google Sign In Fails with Firebase - signInWithRedirect fails, but signInWithPopup works fine
Firebase authentication (email_pwd and google-auth) is linked to this web app (NextJS)
I want to switch from browser popups for Google Sign-In to a redirect. That's when this issue was encountered.
To ...
0
votes
0
answers
102
views
Firebase Phone Auth + App Check: OTP not received consistently (Error Code 39, Quota Exceeded)
When using Firebase Phone Authentication with App Check enforced (Play Integrity for Android, App Attest for iOS), OTP SMS codes are delivered inconsistently. Some phone numbers/devices receive OTPs, ...
0
votes
1
answer
48
views
Firebase Auth & Flutter Web Platform Persistence After Logout (Google Auth Provider)
I have a flutter web app that where users log in with their Google Workspace account.
In my scenario, I need the app to allow the user to log out, so that another user can quickly log in to that same ...
0
votes
0
answers
53
views
React App / Google Firebase Auth not working on live domain
I'm having an issue getting my React web app to authenticate users on the live site via Google Firebase Auth redirect sign-in method.
I've followed the documentation for redirect best practices, and ...
0
votes
0
answers
101
views
How to implement Odoo login authentication using OTP sent via email (instead of password)?
I'm trying to implement a custom login mechanism in Odoo where users authenticate using an OTP (One-Time Password) sent to their email, instead of the traditional username/password method.
My goal:
...
1
vote
2
answers
64
views
Cannot get a specific ErrorCode from Firebase.Auth
I have written a user authorization method and want to catch a specific error code to show to the user. Here is a snippet of the method:
await _auth.SignInWithEmailAndPasswordAsync(email, password)....