1

I plan to use Firebase for authentication and build chat for my Android app. But I have custom backend for rest of the APIs. Can we use both custom backend and firebase authentication at the same time ?

1 Answer 1

4

Sure thing. You'll need to:

  1. Sign the user in with Firebase Authentication in your app.
  2. Pass the user's ID token from the app to your server over a secure connection.
  3. Decode and validate the ID token.
  4. Ensure the user is authorized for the action they're trying to take.
Sign up to request clarification or add additional context in comments.

4 Comments

i am already authenticate using server API is their any way to connect this server with firebase instead connect the app with firebase
What do you want the server to do with Firebase?
Authenticate with server And use authentication token to login to firebase To be able to make chat with firebase without using the server.
I'm not sure I understand correctly, but if you want to mint custom tokens on your server that you then use to sign the user into Firebase, see firebase.google.com/docs/auth/admin/create-custom-tokens

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.