aa-integration-backend/ui-connector/templates/index.html [94:111]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
fetch(serviceUrl + '/register', {
method: 'POST',
headers: {
'Authorization': '123',
},
})
.then(response => response.json())
.then(data => {
JWT = data.token;
$('#log').prepend(
$('
').text('Received ' + JWT).html()
);
// Connect to the Socket.IO server
currentSocket = createSocket(JWT, serviceUrl);
})
.catch((error) => {
console.error('Error:', error);
});
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
aa-integration-backend/ui-connector/templates/index.html [113:130]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
fetch(serviceUrl + '/register', {
method: 'POST',
headers: {
'Authorization': '123',
},
})
.then(response => response.json())
.then(data => {
JWT = data.token;
$('#log').prepend(
$('').text('Received ' + JWT).html()
);
// Connect to the Socket.IO server
currentSocket = createSocket(JWT, serviceUrl);
})
.catch((error) => {
console.error('Error:', error);
});
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -