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

quick fix

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