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 ?
Asked
Modified
5 years, 3 months ago
Viewed
817 times
Part
of PHP, Mobile Development and Google Cloud Collectives
1 Answer
Sure thing. You'll need to:
- Sign the user in with Firebase Authentication in your app.
- Pass the user's ID token from the app to your server over a secure connection.
- Decode and validate the ID token.
- Ensure the user is authorized for the action they're trying to take.
4 Comments
noor magdy
i am already authenticate using server API is their any way to connect this server with firebase instead connect the app with firebase
Frank van Puffelen
What do you want the server to do with Firebase?
noor magdy
Authenticate with server And use authentication token to login to firebase To be able to make chat with firebase without using the server.
Frank van Puffelen
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