Open markopavlovic opened 8 years ago
@markopavlovic I got a 404 from the above link
@jaraquistain updated :)
Hi @markopavlovic , I was just trying this and it looks as I loose state at refresh, have you found this also? If so how did you solve itß
Thanks a lot!
Hi @juankahuna, you will need to Firebase.getAuth() - https://www.firebase.com/docs/web/api/firebase/getauth.html to get the current auth state from the user. You will than need to make a general check for users state and dispatch login action on refresh.
Hope this helps, I might do a gist addition for that also.
Hi there, as I was getting back into React again and taking this stack for a tryout together with a newbie colleague, I made a simple gist showcasing how to replace the examples API login with the Firebase and how to implement Firebase Middleware with same pattern as clientMiddleware.
Maybe not the best example, but hope it helps someone, it for sure would help me if I ran into one :)
Cheers!