update HTML for Bearer token update

This commit is contained in:
xfarrow
2024-03-21 17:34:16 +01:00
parent 572ca83a8f
commit bb86034835
6 changed files with 57 additions and 59 deletions

View File

@ -12,4 +12,11 @@ function getCookie(name) {
function callbackErrors(errors, func) {
errors.forEach(error => func(error.msg));
}
function createHeaders(token) {
return {
"Content-type": "application/json; charset=UTF-8",
"Authorization": `Bearer ${token}`
}
}