use-firebase-auth
use-firebase-auth copied to clipboard
TypeError: r.auth is not a function
Not sure yet why this is happening. I took your sandbox code and put it in line for line in to the latest create-react-app, but I'm getting this error.
I will investigate.
@deanc Had the exact same problem. Figured that when installing the latest release of the firebase
package, which is 7.6.0
, this problem occurs. A workaround is to install the version which is defined as peerDependency
in use-firebase-auth
: [email protected]
.
In the end @akoenig I ended up using this: https://gist.github.com/deanc/76a3de4592c70b36627eb3eb33dca011