fix auth
This commit is contained in:
parent
a73a806fb2
commit
00c34f6d90
@ -313,7 +313,7 @@
|
|||||||
// });
|
// });
|
||||||
// });
|
// });
|
||||||
// import { createAuth0Client } from '@auth0/auth0-spa-js';
|
// import { createAuth0Client } from '@auth0/auth0-spa-js';
|
||||||
let jToken = ""
|
const jToken = ""
|
||||||
|
|
||||||
function loginAction(e) {
|
function loginAction(e) {
|
||||||
auth0.createAuth0Client({
|
auth0.createAuth0Client({
|
||||||
@ -378,7 +378,7 @@
|
|||||||
withCredentials: true,
|
withCredentials: true,
|
||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': "Bearer " + t,
|
'Authorization': "Bearer " + jToken,
|
||||||
}
|
}
|
||||||
}).then(re => {
|
}).then(re => {
|
||||||
re.json().then(jso => {
|
re.json().then(jso => {
|
||||||
|
@ -582,7 +582,8 @@ function sendPrintRequest(action, date, sentence="") {
|
|||||||
method: "post",
|
method: "post",
|
||||||
headers: {
|
headers: {
|
||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json',
|
||||||
|
'Authorization': "Bearer " + jToken
|
||||||
},
|
},
|
||||||
|
|
||||||
//make sure to serialize your JSON body
|
//make sure to serialize your JSON body
|
||||||
|
Loading…
Reference in New Issue
Block a user