aboutsummaryrefslogtreecommitdiff
path: root/auth/public/script.js
blob: b50bf9b893bc2c3e36d4c0080ae2252157a405ba (plain) (blame)
1
2
3
4
5
6
loggedIn();

async function loggedIn() {
    const resp = await fetch("api/status");
    if (!(await resp.json())["loggedIn"]) location.redirect("/");
}