CSFrequency / react-firebase-hooks

React Hooks for Firebase.
Apache License 2.0
3.55k stars 304 forks source link

google user after logged-in doesn't provide users info it always gives undefined #237

Closed raselmahmud-coder closed 2 years ago

raselmahmud-coder commented 2 years ago
error

I have been trying this code when a user wants to log in, but it always gives google users undefined after logging in.

const [signInWithGoogle, googleUser, googleLoading, googleError] = useSignInWithGoogle(auth);

you can try console.log(googleUser).