feat: Implement a new _auth layout with a dashboard map, refactor the login form, and add logout functionality.
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user