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

@@ -80,17 +80,12 @@
window.location.href = 'login.html';
}
response = await fetch(`${API_URL}/persons/me`, {
headers: {
"Content-type": "application/json; charset=UTF-8",
"authorization": token
}
headers: createHeaders(token)
});
document.getElementById('editBadge').style.display = 'block'; // show edit button
} else {
response = await fetch(`${API_URL}/persons/${idToDisplay}/details`, {
headers: {
"Content-type": "application/json; charset=UTF-8",
}
headers: createHeaders(null)
});
}