react-firebase-hooks icon indicating copy to clipboard operation
react-firebase-hooks copied to clipboard

useAuthState gives null

Open faisalchy64 opened this issue 3 years ago • 3 comments

When I am trying to get a user with useAuthState, it gives me null. How can i fix this?

faisalchy64 avatar May 13 '22 17:05 faisalchy64

Hi, is the user logged in? And do you pass in the firebase auth config as an argument in the useAuthState?

HaakonStromsnes avatar May 15 '22 12:05 HaakonStromsnes

Hi, is the user logged in? And do you pass in the firebase auth config as an argument in the useAuthState?

Yes, user logged in and pass firebase auth perfectly

ghost avatar May 15 '22 16:05 ghost

Then it's hard to say what's wrong without seeing the code. useAuthState works like it should for me. The only issue I have is the error not working

HaakonStromsnes avatar May 15 '22 16:05 HaakonStromsnes

@ghost please feel free to reopen with a code example where this isn't working

chrisbianca avatar Nov 04 '22 16:11 chrisbianca