userHasAuthenticated is not a function

I’m loving this guide so far! I’ve come to the ‘Add the Session to the State’ section but after following all the steps, and after logging in, I’m getting an error that says “userHasAuthenticated is not a function”. I’m not sure what else to do. I tried looking at other forums that were dealing with the same issue but they forgot to add childProps to which I can’t find reference to in the guide so doesn’t really help me. Any help would be greatly appreciated!

If you are still having this issue can you post the code for the component that is generating the error?

The login component is generating the error. Not sure what I’m doing wrong.

export default function LoginComp(props) {    

    const [email, setEmail] = useState("");
    const [password, setPassword] = useState("");

    function validateForm() {
        return email.length > 0 && password.length > 0;

    async function handleSubmit(event) {
        try {
          await Auth.signIn(email, password);
        } catch (e) {

            console.log("finished printing");

Whats the error you are getting?