Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase authentication with another API

I am wondering if it is possible to use just the Firebase authentication system together with your own API and database.

It has some nice features I want to take advantage of, however I do not wish to use their database or storage.

The application I am building is an Angular2 and express application with a MongoDB database.

Any answers will be greatly appreciated!

like image 321
aleks Avatar asked Mar 12 '26 18:03

aleks


1 Answers

That definitely is possible: you can create your own identity provider that plugs into Firebase Authentication. This is often referred to as custom authentication. To implement this, you need a server (or other trusted process) where you authenticate your users and mint security tokens for then. You then pass this token to the user and have them pass it into Firebase.

But keep in mind: many Firebase features work fine without authentication. For example: if you use Cloud Messaging, Crash Reporting, Test Lab or many other features, you might not need to implement Firebase Authentication at all.

like image 76
Frank van Puffelen Avatar answered Mar 15 '26 07:03

Frank van Puffelen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!