🔨 Replaces native fetch with axios
All checks were successful
Gitea Build Action / build-go (push) Successful in 25s
Gitea Build Action / build-nuxt (push) Successful in 10m20s

This commit is contained in:
Daniel Svitan
2025-06-06 22:33:26 +02:00
parent 88c31a5133
commit ae7db8290c
6 changed files with 95 additions and 59 deletions

View File

@@ -2,9 +2,9 @@ export function useToken() {
return useCookie<string | undefined>("token")
}
export function useHeaders() {
export function useHeaders(override: string | undefined = undefined) {
const token = useToken()
return {
Authorization: `Bearer ${token.value}`
Authorization: `Bearer ${override ?? token.value}`,
}
}