Implement auth as source of truth on server and protect routes. Integrate with portal

This commit is contained in:
Dominic Ferrando
2026-06-30 23:46:35 -04:00
parent 235c072421
commit f5fb64e467
9 changed files with 83 additions and 42 deletions
+5 -1
View File
@@ -2,4 +2,8 @@ import { treaty } from "@elysia/eden"
import type { API } from "@blade-and-brawn/api"
import { PUBLIC_API_URL } from "$env/static/public"
export const api = treaty<API>(PUBLIC_API_URL)
export const api = treaty<API>(PUBLIC_API_URL, {
fetch: {
credentials: "include",
},
})