### Lock screen

Enter your password to unlock the screen!

##### Kathryn Swarey

Password

Not you ? return Login

©
Vhato. Crafted with by Themesbrand

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'; } }); }