1
0
Fork 0

wip: Updates to packages

This commit is contained in:
joostdecock 2024-12-14 11:34:23 +01:00
parent 1c81f46dee
commit 755c7395ba
45 changed files with 5268 additions and 22 deletions

View file

@ -102,11 +102,7 @@ export function useBackend() {
* @return {object} headers - An object holding headers for the REST API call
*/
function authenticationHeaders(token) {
return token
? {
headers: { Authorization: 'Bearer ' + token },
}
: { headers: {} }
return token ? { Authorization: 'Bearer ' + token } : {}
}
/**