Questions tagged [firebase-authentication]

Firebase Authentication provides backend services, easy-to-use SDKs, and ready-made UI libraries to authenticate users to your app.

8,663 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
17 votes
1 answer
3k views

Setting Firebase user display name via new Firebase console

A basic question I'm sure, but I can see how to programatically set user details of a Firebase user, but I just want to set the display name of a user manually via the Firebase console. I just see the ...
Richard Goodman's user avatar
15 votes
1 answer
6k views

How can I fix this warning from Google Chrome? Cookie... `SameSite=None` but without `Secure`

This piece of code this.afAuth.auth.signInWithPopup(new auth.GoogleAuthProvider()) are generating this warning on Chrome: A cookie associated with a resource at http://google.com/ was set with ...
MVDeveloper1's user avatar
15 votes
1 answer
4k views

Firebase re-authentication required

We are working on an iOS app that is using Google to authenticate with firebase. According to https://www.firebase.com/docs/ios/guide/user-auth.html#section-login Firebase says that auth tokens expire ...
vjy's user avatar
  • 183
14 votes
0 answers
5k views

-[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID Error in Xcode SwiftUI

When I enter email and password information in my Login screen and tap either "Log in" or "Create Account" I get this message in my app error message in app and in my console I am ...
Jake Steirer's user avatar
14 votes
2 answers
1k views

AngularFireAuth emulator login is lost on page reload

My Angular project successfully uses the AngularFireAuth injectable from @angular/fire to connect to a local Firebase authentication emulator. I used these sources as references for my implementation: ...
codepearlex's user avatar
14 votes
1 answer
531 views

Can I create a federated user in firebase manually using admin authentication api?

I've a web application built using firebase. In my web app, I've google, firebase, twitter signup/signin functionalities. Now I want to integrate this with my api.ai agent and have a seamless ...
Phani's user avatar
  • 1,881
13 votes
1 answer
15k views

Error boundaries should implement getDerivedStateFromError()

I was working on a project and everything was working fine, suddenly my app crashed because of this error : Warning: %s: Error boundaries should implement getDerivedStateFromError(). In that method, ...
bxxb's user avatar
  • 784
11 votes
0 answers
1k views

Using Firebase multiple sites & Firebase Auth, is it possible to login on one site and remain authenticated on the other?

Using Firebase multiple sites (ie. same project/authentication just different sites), I'd like to separate my public site from the main app without needing to log into both. ie. have the login form on ...
M.Lewis's user avatar
  • 1,011
11 votes
0 answers
614 views

Call to getRedirectResult after authenticating is very slow

I want to use firebase auth using the redirect mechanism, problem is after successfully authenticating I have to wait for getRedirectResult() to be called. Problem is it is extremely slow and no ...
robertson's user avatar
  • 123
11 votes
0 answers
16k views

How to refresh Firebase ID token?

Sometimes I'm running in a situation where a Firbease ID token never gets refreshed. On each app start I force a refresh of the token with getIdToken(true) and before every call to the server I get ...
Thomas Meinhart's user avatar
11 votes
1 answer
2k views

Firebase anonymous authentication failure through Mobile Data

I am having problems with Firebase authentication when device is connected through Mobile Data connection. If connected through WiFi authentication works fine. I am using following code for ...
Dalija Prasnikar's user avatar
  • 28.2k
11 votes
0 answers
2k views

Android Firebase: signInWithCustomToken takes a very long time

Attempting to sign into Firebase using a custom token on Android takes roughly 30 seconds to complete on average. It's not a network issue as the call to my server to get the custom token returns in a ...
Patrick Goley's user avatar
11 votes
0 answers
1k views

Login in both Chrome extension and Webapp via Firebase

Chrome Extension part I have implemented a chrome extension based on Firebase. We started the login flow by: chrome.identity.launchWebAuthFlow and then after the flow is done, it will trigger the ...
nlgn's user avatar
  • 388
11 votes
1 answer
4k views

Qr code authentication using Firebase

I'd like to achieve WhatsApp web like authentication where the user should scan a Qr code using the mobile app to login to the web app using Firebase and I want to achieve this with users who are ...
RamithDR's user avatar
  • 2,163
10 votes
0 answers
219 views

firebaseAdmin.auth().getUser(uid) being extremely slow recently

Starting around October firebaseAdmin.auth().getUser(uid) is having an extremely slow response time - often reaching more than 60 secs and even more - and then it returns back to normal. My first ...
habib mohammed's user avatar
10 votes
1 answer
2k views

How to handle Firebase Auth account-exists-with-different-credential Errors

Both iOS and Web detail how to handle the error account-exists-with-different-credential which occurs when trying to sign in to an account that is already set in firebase auth with a given email. ...
Nic Capdevila's user avatar
10 votes
3 answers
275 views

Why is there no screenshot in recent apps when finnishing activity in firebase onAuthStateChanged

I got a very basic splashscreen activity: @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_start); ...
Robin Dijkhof's user avatar
10 votes
2 answers
713 views

Sign in with Facebook if account already linked with google during initial signup in Firebase Android

I am trying to sign in with facebook in the reinstallation of an android app. Initially I signed up using Google and successfully linked it with firebase. But when I try to do with facebook it gives ...
Shubham's user avatar
  • 2,687
10 votes
1 answer
3k views

Is it possible to incorporate Firebase Auth into ASP.NET Core MVC?

I am working to build an Ionic mobile application, and I plan to use Firebase's auth and realtime database offerings. I am trying to understand if it's possible to also incorporate Firebase auth into ...
Sam Storie's user avatar
  • 4,484
10 votes
0 answers
680 views

How to disable back button after startActivityForResult in FirebaseUI is called?

I know, if I use onBackPressed method, back button is disabled, but my question is, how or where I should use it, if I have .createSignInIntentBuilder() in my activity. It is like making new Activity ...
j22purikas's user avatar
10 votes
0 answers
1k views

How to detect instantly when user closes Popup using $firebaseAuth().$signInWithPopup?

I´m implementing Google authentication signin using Firebase Authentication with angularFire service $firebaseAuth and the method $signInWithPopup. The method returns a promise if it's resolved or ...
guillefd's user avatar
  • 1,993
9 votes
1 answer
3k views

Protect routes in NextJS using Firebase Authentication

The route I want to protect: /account If the user is NOT authenticated, then redirect to /signIn Having an SSR NextJS project, and working with Firebase authentication, how can I achieve a ...
try_catch's user avatar
  • 189
9 votes
1 answer
1k views

Why does Firebase pendingAuthResult return null?

I am trying to implement Sign in with Apple using Firebase Authentication. I am following the firebase/quickstart-android sample. My sign-in fragment overrides onStart() to check for any pending ...
PesaThe's user avatar
  • 7,399
9 votes
0 answers
2k views

Android FirebaseAuth undocumented `getAccessToken`

I can't find any information on the getAccessToken method which can be found at FirebaseAuth.getInstance().getAccessToken(boolean) My Android app needs to get a JWT access token ("idToken") from ...
Daniel F's user avatar
  • 14k
9 votes
0 answers
794 views

Firebase signInWithCredentials from Microsoft Azure

Normally, I'd use the firebase.auth.OAuthProvider('microsoft.com') and pass it to firebase.auth().signInWithPopup() but in my case I need to log into Microsoft first using their library and pass the ...
Eric's user avatar
  • 995
9 votes
1 answer
761 views

How do I delete my Auth object before "the App it depends upon" when Changing Scenes?

So, utilizing Firebase Auth and Storage in my AR Application. Upon completing Login and Asset Bundle download, my script directs the User to the next Scene (via SceneManager.LoadScene()), where they ...
SOCO.dev's user avatar
  • 111
9 votes
0 answers
247 views

Firebase Authentication Staging Environment

I find nowhere in the docs how to setup a separate development (pre-production, staging, etc.) environment when working with Firebase Authentication. I do not want to create and delete arbitrary user ...
Sammy's user avatar
  • 3,555
9 votes
0 answers
3k views

Not receiving Firebase reset password email

Im using the Console interface > Authentication > Users. I created several email/password based users (using the console web UI), and then selected the action to "reset password" to send a reset ...
omarojo's user avatar
  • 1,217
9 votes
1 answer
2k views

Linking Google Assistant with Firebase Auth

I am attempting to connect a Google Assistant app using DialogFlow(Api.AI) with Firebase Auth. My App uses Firebase Auth to maintain user accounts and the realtime database to store data. I would like ...
Zomb's user avatar
  • 911
9 votes
1 answer
399 views

Sharing Firebase authentication session from iOS container app with app extensions

I'm trying to post to my database using the Share application extension in iOS. Is there any way I can use the same authentication sessions used by the container app? My database rules are currently ...
boywithaxe's user avatar
9 votes
1 answer
5k views

firebase authentication timeout

I'm developing an Android App with Firebase. The login process with email and password is working fine if the device has a good internet connection, but when i make a test in a bad signal place or ...
MCNiche's user avatar
  • 91
9 votes
0 answers
1k views

FirebaseUser.isAnonymous() always returns false after profile update (Firebase 10.2.0)

I don't know what can go wrong here. I want to know if a user is signed in anonymously. I use signInAnonymously() for signing in. Everything works like a charm. But a call to FirebaseAuth.getInstance()...
cybergen's user avatar
  • 3,127
9 votes
0 answers
1k views

Cancel task in auth case

I have created task for creating user, and then I want to cancel the task or remove listener. How can I do it ? Task authTask = mAuth.createUserWithEmailAndPassword(emailEditText.toString(), ...
Sedoykin Pavel's user avatar
9 votes
0 answers
2k views

Firebase currentUser returns nil after logging in

I followed the instructions [here][1] to implement Google authentication through Firebase. Next I started working on the database. At the root of each database element is the the user, so I followed ...
Kendall Weihe's user avatar
9 votes
0 answers
2k views

Firebase Authentication Error Handling

Not sure if this is somewhere already, but I couldn't find it so I made it. Hope this provides help to someone. Steps that you have to follow: Step #1 Put the guard statement after you try to login ...
Jevon Charles's user avatar
8 votes
0 answers
2k views

How to work with flutter_bloc 8+, go_router +6 and refreshListenable

I'm using go_router for navigation and flutter_bloc for my state management. I would like to use refreshListenable and listen to my AuthBloC events in my GoRouter configuration, however, I don't have ...
Phil's user avatar
  • 854
8 votes
0 answers
607 views

Firebase signInWithRedirect not working in chrome incognito?

I'm using the following code to prompt a google auth login with redirect: var provider = new firebase.auth.GoogleAuthProvider(); provider.setCustomParameters({ prompt: '...
meds's user avatar
  • 22.5k
8 votes
1 answer
1k views

GoogleAPI with Google Sign In Account

I've implemented google sign in with firebase auth in my application. I'm trying to implement GmailAPI with signed in google account but was unable to find anything regarding both of them together. I'...
codekls's user avatar
  • 179
8 votes
1 answer
612 views

Import Firebase User with Custom Claims

I am trying to export and import user using the firebase CLI as per docs available here. My problem is that I want to also export the user claims, or at least be able to include custom claims when ...
Estevao Santiago's user avatar
8 votes
0 answers
2k views

How to authenticate azure functions with firebase auth

Before I explain my problem I want to share some insights about what I am trying to do. I am developing a serverless application in Azure. My azure app service plan contains multiple azure function ...
Malik Kashmiri's user avatar
8 votes
1 answer
1k views

Firebase + Nextjs - User session sharing

Problem: I need to make database requests on the server side of my app which is written using Next.js and Firebase (not the best combination, I know) to prepare initial data for the client side. ...
ToothlessFury's user avatar
8 votes
0 answers
1k views

Is there a way to configure firebase timeout time ?

I noticed odd behavior with firebase. When making a login request with no internet it takes a pretty long time for firebase to timeout and return an error in the completion handler. Once the first ...
3366784's user avatar
  • 2,455
8 votes
0 answers
877 views

Firebase SDK signInWithPopup() not working with Electron

I have an electron app that fires up a lightweight express server allowing me to use http in production for firebase github authentication. I have this working fine using the signInWithRedirect() ...
Samuel's user avatar
  • 2,595
8 votes
0 answers
2k views

Prevent multiple devices from using the same Firebase account through Swift

I'm building an iOS app using Swift and Firebase for authentication that needs to avoid multiple connections of the same account from different devices. I've read some other posts on here but haven't ...
AnthonyZ's user avatar
8 votes
0 answers
737 views

Firebase anonymous authentication persistence on a device

I'm using firebase for the backend of an IOS app written in Swift3. I don't want my users to enter any kind of credentials so I'm using anonymous authentication. In my appDelegate in the application ...
Eric's user avatar
  • 567
8 votes
2 answers
2k views

Firebase security rules doesn't allow when creating user

I use Firebase $authWithPassword method for user login. I use the $createUser method to create registration for my users and on its success I update entry on my /users/ path to save the username, uid ...
Syed Sehu Mujammil A's user avatar
7 votes
0 answers
927 views

Connect Android app to Firebase Auth emulator without allowing cleartext HTTP traffic

I have a Flutter application that uses Firebase as its back-end. I use Firebase emulators to test my app in debug mode. In order to allow physical devices to connect to the emulators I run on my ...
Anakhand's user avatar
  • 2,921
7 votes
0 answers
1k views

Firebase Auth throwing "auth/internal-error" when trying to use PhoneAuthProvider method in Ionic React IOS mobile application

I am currently having some issues trying to integrate Google Firebase authentication into a React Ionic mobile application. So far I have been able to set up the app to run correctly on both web and ...
JordanDavis's user avatar
7 votes
1 answer
789 views

How can you log in a tenant's user without knowing their tenantId?

So I'm building a multi-tenant Firebase application using Flutter. I know, Firebase recommends against this, but it is supported through Google Cloud Identity Platform. I've set up GCIP and I can log ...
Grady's user avatar
  • 71
7 votes
0 answers
471 views

I need an Authorized Domain for Firebase Authentication for my local Expo/React Native Project

My goal is redirect a user back to my local Expo application after he has verified his email. firebase.auth().sendSignInLinkToEmail(email, { url: // need this url to redirect back to my ...
RiskItAll's user avatar
  • 269

1
2 3 4 5
174