reworked admin auth to use form and cookie + adjusted oauth to support API and cookie-based auth

This commit is contained in:
dswbx
2024-11-23 18:12:19 +01:00
parent f70e2b2e10
commit 824ff40133
30 changed files with 630 additions and 483 deletions

View File

@@ -150,7 +150,8 @@ function UserMenu() {
async function handleLogout() {
await auth.logout();
navigate("/auth/login", { replace: true });
// @todo: grab from somewhere constant
window.location.href = "/auth/logout";
}
async function handleLogin() {