tangled
alpha
login
or
join now
flo-bit.dev
/
blento
22
fork
atom
your personal website on atproto - mirror
blento.app
22
fork
atom
overview
issues
1
pulls
pipelines
add logging
Florian
1 month ago
26fc9065
b55d35bc
+9
-2
3 changed files
expand all
collapse all
unified
split
src
lib
atproto
auth.svelte.ts
routes
+layout.server.ts
+layout.svelte
+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
61
+
62
62
+
console.log(client_id, redirect_uri);
63
63
+
} else {
64
64
+
console.log('no custom domain');
61
65
}
62
66
63
67
configureOAuth({
+4
-2
src/routes/+layout.server.ts
···
1
1
-
export async function load({ platform, request }) {
2
2
-
const customDomain = request.headers.get('X-Custom-Domain')?.toLocaleLowerCase();
1
1
+
export async function load({ request }) {
2
2
+
const customDomain = request.headers.get('X-Custom-Domain')?.toLowerCase();
3
3
+
4
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
19
+
console.log(data.customDomain);
19
20
initClient({ customDomain: data.customDomain });
20
21
21
22
const error = page.url.searchParams.get('error');