@@ -11,6 +11,8 @@
) {
const authResult = await this.fetch("/login/check", { credentials: "include" });
const result = (await authResult.json()) as AuthInfo;
+ console.log(result);
+ console.log(path);
if (path.startsWith("/login/")) {
if (result.loggedIn) {
return this.redirect(302, "/");
@@ -62,7 +62,6 @@
credentials: "include",
headers: {
Accept: "application/json",
- "Content-Type": "application/json",
},
});