I\'ve created the following authentication component in React, which uses an AuthContext to pass the login functionality to other components:
const AuthContex