Closed andrrsin closed 6 months ago
The problem was Game.jsx wasn't checking whether the user was or not connected. It was fixed by using:
useEffect(()=>{ if (!isAuthenticated()) { navigate("/login"); } }, [isAuthenticated, navigate]);
The url of mongo userdb has been changed to:
const mongoUri = process.env.MONGODB_URI || 'mongodb://localhost:27017/wiq-en1a-users';
thanks andrés, looks good, I will close these issues now
Fixed bugs
68
The problem was Game.jsx wasn't checking whether the user was or not connected. It was fixed by using:
69
The url of mongo userdb has been changed to: