Move auth token to contrib

This commit is contained in:
Erik Larsson
2021-02-20 01:46:00 +01:00
parent 145205a14b
commit 74534a0f8c
5 changed files with 44 additions and 54 deletions
+1
View File
@@ -171,6 +171,7 @@ export class TechDocsStorageApi implements TechDocsStorage {
const request = await fetch(
`${url.endsWith('/') ? url : `${url}/`}index.html`,
{
credentials: 'include',
headers: token ? { Authorization: `Bearer ${token}` } : {},
},
);