fix: use Authorization header

This commit is contained in:
Raymond Hear 2025-05-20 17:27:44 -04:00 committed by Tim Visée
parent 56a0e830bd
commit c0cf7bbda2

View file

@ -43,7 +43,7 @@ function post(obj, bearerToken) {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}; };
if (bearerToken) { if (bearerToken) {
h['Authentication'] = `Bearer ${bearerToken}`; h['Authorization'] = `Bearer ${bearerToken}`;
} }
return { return {
method: 'POST', method: 'POST',