Hi Tallan thanks for tutorial, it's brilliant. There are two errors in the code above.
You fixed them in your source repo but if someone is stuck, it may help.
const {signout,} = useContext(firebaseAuth)
-> signout is need to be replaced by handleSignout.
Hi Tallan thanks for tutorial, it's brilliant. There are two errors in the code above.
You fixed them in your source repo but if someone is stuck, it may help.
const {signout,} = useContext(firebaseAuth)
-> signout is need to be replaced by handleSignout.
const handleSignout = () => {
authMethods.signout()
}
-> we need to pass setErrors and setToken as parameters to authMethods.signout().