INIT frontend

This commit is contained in:
2025-11-28 11:55:01 -06:00
parent f99d21805f
commit 5029278228
31 changed files with 3766 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import { initializeAuth, getToken } from "./auth.js";
import { log, error } from "./logger.js";
async function startApp() {
log("App starting...");
await initializeAuth();
try {
const token = await getToken();
log("Final acquired token:", token.slice(0, 30) + "...");
document.querySelector("#content").textContent =
"Logged in successfully. Token acquired.";
} catch (e) {
error("Failed to authenticate:", e);
document.querySelector("#content").textContent =
"Authentication failed. Check console.";
}
}
startApp();