feat: allow client-based web tokens

This commit is contained in:
DecDuck
2025-04-08 16:16:40 +10:00
parent 043ef6dcd2
commit 42349ad4e1
8 changed files with 59 additions and 7 deletions

View File

@ -42,7 +42,7 @@ export const $dropFetch: DropFetch = async (request, opts) => {
return object;
}
const headers = useRequestHeaders(["cookie"]);
const headers = useRequestHeaders(["cookie", "authorization"]);
const data = await $fetch(request, {
...opts,
headers: { ...opts?.headers, ...headers },