mesqueeb / vuex-easy-firestore

Easy coupling of firestore and a vuex module. 2-way sync with 0 boilerplate!
https://mesqueeb.github.io/vuex-easy-firestore
MIT License
234 stars 28 forks source link

Question: can we rely on the `signedIn` getter to check if the user is signed in? #356

Closed fergusmeiklejohn closed 3 years ago

fergusmeiklejohn commented 3 years ago

I was adding a loggedIn getter to the user module and noticed that there is a signedIn getter provided by VuexEasyFirestore. I can't find anything about it in the docs, can we rely on it to determine whether a user is signedIn?

louisameline commented 3 years ago

No, this is undocumented and should not be used, it might change in the future. Vuex-easy-firestore is meant to deal with Firestore, you shouldn't use it to get that kind of info which comes from Firebase Auth, which is technically another service.

fergusmeiklejohn commented 3 years ago

I wonder if there is a way to hide those getters in Vue dev tools? It's an invitation to make a mistake otherwise.

louisameline commented 3 years ago

I don't know, let us know if you find out!