From the course: Firebase Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Avoid vendor lock-in

Avoid vendor lock-in - Google Cloud Tutorial

From the course: Firebase Essential Training

Start my 1-month free trial

Avoid vendor lock-in

- [Instructor] We've seen what the main Firebase auth functions are that we'll be using in our application, so now it's time to look at how to actually add them to our application. Now, if you're like most people, your first instinct might be to just import Muse's functions directly where they're needed. So in our sign-in form component, for example, we might just say import Firebase from Firebase app and then simply call Firebase.auth.sign in with with email and password. And this is definitely something that you're perfectly allowed to do, however, I strongly recommend that you don't do things this way, and here's why. When we use a library like Firebase the inevitable result is that the library will become deeply entangled with our application. And this means that if we ever wanted to switch to a different library, it would be so much work to replace the old library that we would become stuck with it. Now, with…

Contents