This commit is contained in:
samerbam 2023-08-24 17:01:59 -04:00
parent a73a806fb2
commit 00c34f6d90
2 changed files with 4 additions and 3 deletions

View File

@ -313,7 +313,7 @@
// });
// });
// import { createAuth0Client } from '@auth0/auth0-spa-js';
let jToken = ""
const jToken = ""
function loginAction(e) {
auth0.createAuth0Client({
@ -378,7 +378,7 @@
withCredentials: true,
credentials: 'include',
headers: {
'Authorization': "Bearer " + t,
'Authorization': "Bearer " + jToken,
}
}).then(re => {
re.json().then(jso => {

View File

@ -582,7 +582,8 @@ function sendPrintRequest(action, date, sentence="") {
method: "post",
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
'Content-Type': 'application/json',
'Authorization': "Bearer " + jToken
},
//make sure to serialize your JSON body