title: How can I create a global object/service that can be used across my Viewmodels/controllers android
body: <p>I am creating an app that is powered by firebase. I want to implement the firebase auth, which according to the <a href="https://firebase.google.com/docs/auth/android/password-auth" rel="nofollow noreferrer">documentation</a> would require me to initialize the auth object and use it around the application:</p>
  <pre><code>    private lateinit var auth: FirebaseAuth
  // ...
  // Initialize Firebase Auth
  auth = Firebase.auth
  </code></pre>
  <p>Is there a way to have the initialized auth object global, and probably lifecycle aware, so I can just use it anywhere I want across my app?</p>
  <p>Please note I am new to android development/kotlin</p>