Skip to content

Commit b78013a

Browse files
committed
createHeaders
1 parent 0e09c03 commit b78013a

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/composables/useProcessing.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -279,15 +279,10 @@ export default function useProcessing() {
279279
}
280280

281281
const loadProject = async (id: string) => {
282-
const token = generateJWT()
283-
284282
try {
285283
isProjectLoading.value = true
286284
const response = await fetch(`${apiBaseUrl}projects/${id}`, {
287-
headers: {
288-
'Content-Type': 'application/json',
289-
Authorization: `Bearer ${token}`,
290-
},
285+
headers: createHeaders()
291286
})
292287
const project = await response.json()
293288
const blob = await fetch(project.results.polygons)

0 commit comments

Comments
 (0)