This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
So I thought the default for persistence in JavaScript projects was local persistence i.e. staying logged in until officially logged out. But when i refresh the emulator and console.log what onAuthStateChange is doing it shows all the user credentials undefined. Currently I am saving the the uid with AsyncStorage to render the rest of the app but I do not know if this is the proper way to do things.
I tried using setPersistance(browserLocalPersistance) but it was throwing me an error saying it expected a class definition and couldn't find much to fix it. I'm not sure if this method even works for React Native. So any advice would be greatly appreiated
Subreddit
Post Details
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Firebase/co...