mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
update HTML for Bearer token update
This commit is contained in:
@ -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}`
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user