Implement auth as source of truth on server and protect routes. Integrate with portal
This commit is contained in:
@@ -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",
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user