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

19 lines
418 B
JavaScript
Raw Normal View History

2025-02-13 20:58:12 +08:00
import { auth } from "./ebcd-common-firebase.js";
console.log("ebcd-profile loaded <3");
// check url params
const urlParams = new URLSearchParams(window.location.search);
// if logOut=true, sign out
if (urlParams.get("logOut") === "true") {
auth
.signOut()
.then(() => {
window.location = "/";
})
.catch((error) => {
console.error("ebcd-profile: error signing out", error);
});
}