Keycloak to IndieAuth translator (mirror of https://git.jbc.lol/jbcrn/KcIA)

quick fix

+3 -2
+3 -2
src/index.js
··· 65 65 66 66 let clientName = clientUri.hostname, clientIcon, clientDesc = ""; 67 67 68 - console.log(clientIcon, clientName) 69 68 let url = new URL(client_id); 70 69 url.pathname = '/' 71 70 ··· 75 74 if (clientRes.headers.get('Content-Type').includes('json')) { 76 75 const json = await clientRes.json(); 77 76 clientName = json.client_name; 78 - clientIcon = json.client_logo; 77 + clientIcon = json.client_logo ?? json.logo_uri; 79 78 80 79 try { 81 80 let homepageRes = await fetch(url); ··· 126 125 clientIcon = undefined; 127 126 clientName = new URL(client_id).hostname; 128 127 } 128 + 129 + console.log(clientIcon, clientName) 129 130 130 131 try { 131 132 await kcAdminClient.clients.create({