Questions tagged [firebase-authentication]

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

About Firebase Authentication

Firebase Authentication is a component of the Firebase suite of tools for cross-platform application development.

  • Flexible SDKs on top of reliable Google infrastructure
  • Optional, out-of-the-box authentication UI optimized to give your users the best experience
  • Advanced functionality like email verification, anonymous accounts, and account linking
  • It supports authentication using passwords, phone numbers, popular federated identity providers like Google, Facebook and Twitter

Related tags

21673 questions
403
votes
9 answers

Convert Promise to Observable

I am trying to wrap my head around observables. I love the way observables solve development and readability issues. As I read, benefits are immense. Observables on HTTP and collections seem to be straight forward. How can I convert something like…
Krishnan Sriram
  • 5,037
  • 5
  • 21
  • 31
264
votes
51 answers

Flutter and google_sign_in plugin: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null)

The dialog (Google form) for the credentials is opened successfully, but after I fill my credentials I'm getting this error. I followed the instructions from here. Created a Firebase project, enabled the Google Drive API (that's what I need for now)…
217
votes
9 answers

How to protect firebase Cloud Function HTTP endpoint to allow only Firebase authenticated users?

With the new firebase cloud function I've decided to move some of my HTTP endpoint to firebase. Everything works great... But i have the following issue. I have two endpoints build by HTTP Triggers (Cloud Functions) An API endpoint to create users…
164
votes
6 answers

Where does one set the Oauth Redirect URI for Facebook apps?

We are being asked to set the OAuth redirect URI for Facebook (as shown below) in the instructions to set up Google Firebase to use Facebook login. We clicked in every menu for our app. Where is it? Could it be called something different? From the…
Praxiteles
  • 5,802
  • 9
  • 47
  • 78
163
votes
4 answers

Use multiple JWT Bearer Authentication

Is it possible to support multiple JWT Token issuers in ASP.NET Core 2? I want to provide an API for external service and I need to use two sources of JWT tokens - Firebase and custom JWT token issuers. In ASP.NET core I can set the JWT…
Sane
  • 2,334
  • 2
  • 17
  • 20
161
votes
14 answers

How do I detect if a user is already logged in Firebase?

I'm using the firebase node api in my javascript files for Google login. firebase.initializeApp(config); let provider = new firebase.auth.GoogleAuthProvider(); firebase.auth().signInWithPopup(provider); This works fine and the user is able to…
Jophin Joseph
  • 2,864
  • 4
  • 27
  • 40
148
votes
31 answers

Could not find a valid GoogleService-Info.plist in your project

When I run my swift 3.2 code with Xcode 9 beta 4 this is the error I get: *** Terminating app due to uncaught exception 'com.firebase.core', reason: '[FIRApp configure]; (FirebaseApp.configure() in Swift) could not find a valid…
adam eliezerov
  • 2,185
  • 2
  • 11
  • 17
143
votes
28 answers

Why do I get com.google.android.gms.common.api.ApiException: 10:?

private void handleSignInResult(Task completedTask) { try { GoogleSignInAccount account = completedTask.getResult(ApiException.class); //exception is here // Signed in successfully, show authenticated UI. …
Arsen Budumyan
  • 1,431
  • 2
  • 7
  • 5
121
votes
7 answers

How to create "credential" object needed by Firebase web user.reauthenticateWithCredential() method?

The (unclear) example in the new docs: var user = firebase.auth().currentUser; var credential; // Prompt the user to re-provide their sign-in credentials user.reauthenticateWithCredential(credential).then(function() { How should I create this…
Pandaiolo
  • 11,165
  • 5
  • 38
  • 70
112
votes
15 answers

Firebase 3 - We have blocked all requests from this device due to unusual activity

I was testing my login/sign up feature and for some reason I can't understand Firebase now is blocking all requests from my device. I've waited one day to try again, but I still have the same problem. ERROR: "We have blocked all requests from…
Eusthace
  • 3,601
  • 7
  • 34
  • 41
101
votes
12 answers

FirebaseInstanceId Token retrieval failed SERVICE_NOT_AVAILABLE

I'm working on an android app, it uses Firebase Authentication, Database and Storage. It was all working fine until this error message started to show up in logcat. (I did not tamper with any configs at firebase console) E/FirebaseInstanceId: Token…
97
votes
14 answers

Google sign in not working after publishing in play store

I went through this, and as far as the process goes I did that. But I when I installed the app from play store I am not able to sign in using the google sign in button. I have used Firebase for google sign in. When I am clicking the sign in button…
arqam
  • 3,582
  • 5
  • 34
  • 69
96
votes
27 answers

This app is not authorized to use Firebase Authentication.Please verify that the correct package name and SHA-1 are configured in the Firebase Console

Firebase auth was working fine, the debug build suddenly started failing without any change of code, logging the folloing message D/PhoneAuthActivity( 7392): signInWithCredential:failure:com.google.firebase.auth.FirebaseAuthException: This app is…
ishandutta2007
  • 16,676
  • 16
  • 93
  • 129
90
votes
4 answers

How to use the Firebase refreshToken to reauthenticate?

I use the JS library call firebase.auth().signInWithEmailAndPassword(email, password) and get back a User object. The User object contains a refreshToken. I use curl…
kgaidis
  • 14,259
  • 4
  • 79
  • 93
86
votes
10 answers

Can't get currentUser on load

When trying to check if a user is signed in via firebase.auth().currentUser like this: if (firebase.auth().currentUser === null) { console.log('User not signed in'); } Whenever I refresh the page, or navigate around the above returns null (even…
Chris
  • 7,830
  • 6
  • 38
  • 72
1
2 3
99 100