PageSourceSearch

https://amparodosaofrancisco.se.gov.br/sites/all/themes/bootstrap_3tecnos/js/authentication.js?tilf20

js amparodosaofrancisco.se.gov.br collected 2026-10-03 02:28:17 UTC 932 bytes, 38 lines download raw bytes

1async function obterToken() {
2  var apiUrl =
3    "https://3tecnos-api-cubobi-charts.azurewebsites.net/security/token";
4
5  var username = "cubobi";
6  var password = "cub0b1@3t3cn0s";
7
8  let data =
9    "grant_type=password&username=" +
10    username +
11    "&password=" +
12    password +
13    "&sq_sistema=56";
14
15  if (localStorage.getItem("tokenBi")) {
16    return localStorage.getItem("tokenBi");
17  }
18
19  await fetch(apiUrl, {
20    method: "POST",
21    headers: {
22      "Content-Type": "application/x-www-form-urlencoded",
23    },
24    body: data,
25  })
26    .then((response) => response.json())
27    .then((data) => {
28      if (data && data.error && data.error_description) {
29        throw data.error_description;		
30      } else {
31        localStorage.setItem("tokenBi", data.access_token);        
32		return localStorage.getItem("tokenBi");
33      }
34    })
35    .catch((error) => {
36      throw error;
37    });
38}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.