When registering it will popup an error tat AuthContext.setUser isn't defined. This is because the AuthProvider has not been set in the App.tsx.
import React from "react";
import "./App.css";
import ApplicationRoutes from "./config/ApplicationRoutes";
import { AuthProvider } from "./AuthProvider";
function App() {
return (
<div className="App">
<AuthProvider>
<ApplicationRoutes />
</AuthProvider>
</div>
);
}
export default App;
When registering it will popup an error tat AuthContext.setUser isn't defined. This is because the AuthProvider has not been set in the App.tsx.