-
Dear community, I am using cue petite with Firebase and I you Firebase's "onAuthStateChanged " outside of app and I need to pass Auth state and user details to Vue variable. In a class due I would achieve this with a method and Created() lifecycle hook, but I can't figure out how to do this with Petite. In the same was I would like to make a one time call to fetch further user data from db. My code:
Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
sqllyw
Dec 4, 2022
Replies: 1 comment 1 reply
-
I think you should put $userStore outside of onAuth method, like following untested code:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
bfgpab
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you should put $userStore outside of onAuth method, like following untested code: