Fix the login auth

This commit is contained in:
Hannah dagemark 2026-09-15 11:22:37 +02:00
commit e40ed22746
3 changed files with 17 additions and 3 deletions

View file

@ -8,6 +8,7 @@ import { Token } from "../api/types";
export async function login(formData: FormData) {
"use server";
const token = await loginUser(formData);
console.log(`Fetched following token for login: ${token}`);
await createSession(token);
redirect("/Admin/Overview");
}