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