feat: Implement a new _auth layout with a dashboard map, refactor the login form, and add logout functionality.

This commit is contained in:
Jrodenas
2026-03-15 19:56:14 +01:00
parent 45da7f62fe
commit 08d0a5a099
12 changed files with 307 additions and 148 deletions

View File

@@ -1,5 +1,9 @@
import { createFileRoute } from "@tanstack/react-router"
import { user } from "@/lib/server/user"
export const Route = createFileRoute("/logout")({
beforeLoad: async ({ context }) => {}
beforeLoad: async () => {
await user.logout()
},
preload: false
})