CCCPaste

kinvey auth

const username="entropy";
const password="fuckoff";


let auth=`Basic ${btoa(`${username}:${password}`)}`

let  headers={
    'Content-type': 'application/json',
    "Authorization": auth    
}

loadButton.addEventListener("click", async function(){ 
    let response = await fetch("https://baas.kinvey.com/appdata/kid_rkzic96iS/books",{
    method:"GET",
    headers: headers});
    let books = await response.json();
    console.log(books)
})