import { auth } from './firebase-config.js';
import { onAuthStateChanged } from "firebase/auth";
export function checkAuth() {
onAuthStateChanged(auth, (user) => {
if (!user) {
// Redirecionar para a página de login se o usuário não estiver autenticado
window.location.href = 'auth-login.html';
}
});
}