firebase platforms in simple ways

hi to the community! I am new to vuejs platforms. 

today i will not ask about the vuejs but rather the firebase by google. 

Right now i am searching idea on how to integrate multiple platforms from firebase to my vuex.

like i want to make a one function for auth and database.


createacct ()
 firebase.database && firebase.auth()

thanks for any replies.