wirm/Web/public/js/ebcd-auth.js

9 lines
185 B
JavaScript

import { auth } from "./ebcd-common-firebase.js";
console.log("ebcd-auth loaded <3");
auth.onAuthStateChanged((user) => {
if (user) {
window.location = "/profile.html";
}
});