lefteris 3 years ago
parent
commit
282bc362ec
  1. 10
      src/components/doclive/runLlo.vue

10
src/components/doclive/runLlo.vue

@ -495,18 +495,20 @@ export default {
try {
var token = value;
var pipelines = {
source: "ssologin",
source: token,
};
var params = {
pipeline: pipelines,
run: pipelines,
};
var options = {
headers: {
"content-type": "application/x-www-form-urlencoded",
"content-type": "application/json",
// rejectUnauthorized: false,
Authorization: `Bearer ${token}`,
},
};
var res = await axios.post(
"https://api.swarmlab.io/istokenvalidsso",
params,
@ -752,7 +754,7 @@ export default {
created() {
//var logintoken = new URL(location.href).searchParams.get("token");
var logintoken = new URL(
"https://api-client.swarmlab.io:8088/?token=08b677fbc99c39e100b5b64e90e1d7d77c3e3e7c"
"https://api-client.swarmlab.io:8088/?token=de10ccdc027cd26161b3c1923098e436d56882f0"
).searchParams.get("token");
this.logintoken = logintoken;
// === We get the user + check for the token if exists

Loading…
Cancel
Save