0

I would like to use firebaseAuth as my authenticator api.

I created user, but there is no possibility to login with email and password. I found an endpoint to access and login, but I wish there was a method in Firebase Auth to do that.

any suggestion?

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807

1 Answers1

1

There are two types of Firebase SDKs (including those for Java):

  1. SDKs for use in untrusted clients, which are integrated into the app/site your users access. The Firebase Authentication SDK for Android is an example of this, and it allows the user to sign in to Firebase with many providers, including email+password.
  2. Admin SDKs for use in trusted environments, such as your development machine, a server you control, or Cloud Functions. These Admin SDKs access the Firebase project with administrative privileges (hence their name), meaning that they have full access to the entire project. These SDKs, including the Firebase Authentication Admin SDK for Java, do not have a way to sign in to Firebase (as they're already authorized to access all resources), but do for example allow you verify ID tokens, create, update, and delete user profiles, and many more actions.

The Admin SDKs cannot be used from client-side application code, so you will have to find a way to fit your use-case into one of the SDKs, or use a combination of both SDK types, by setting up a custom API that your client-side application code calls into.

Also see:

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
  • Thank you Frank! I got you! In my case I needed to check firebase to validate and create my api token. I saw a solution when the client passes firebase auth token, I can check this token and create my own token to access apis. – Nayara Dias Feb 27 '22 at 14:38