your personal website on atproto - mirror blento.app

Merge pull request #144 from flo-bit/custom-domains-editing

add logging

authored by

Florian and committed by
GitHub
1f88d4b4 62380835

+9 -2
+4
src/lib/atproto/auth.svelte.ts
··· 58 if (options?.customDomain) { 59 client_id.replace('blento.app', options.customDomain); 60 redirect_uri.replace('blento.app', options.customDomain); 61 } 62 63 configureOAuth({
··· 58 if (options?.customDomain) { 59 client_id.replace('blento.app', options.customDomain); 60 redirect_uri.replace('blento.app', options.customDomain); 61 + 62 + console.log(client_id, redirect_uri); 63 + } else { 64 + console.log('no custom domain'); 65 } 66 67 configureOAuth({
+4 -2
src/routes/+layout.server.ts
··· 1 - export async function load({ platform, request }) { 2 - const customDomain = request.headers.get('X-Custom-Domain')?.toLocaleLowerCase(); 3 4 return { customDomain }; 5 }
··· 1 + export async function load({ request }) { 2 + const customDomain = request.headers.get('X-Custom-Domain')?.toLowerCase(); 3 + 4 + console.log('domain:', customDomain); 5 6 return { customDomain }; 7 }
+1
src/routes/+layout.svelte
··· 16 }; 17 18 onMount(() => { 19 initClient({ customDomain: data.customDomain }); 20 21 const error = page.url.searchParams.get('error');
··· 16 }; 17 18 onMount(() => { 19 + console.log(data.customDomain); 20 initClient({ customDomain: data.customDomain }); 21 22 const error = page.url.searchParams.get('error');