fix: load turnstile script in layout and explicitly render

chore: npm run format + lint
This commit is contained in:
2026-01-04 09:22:27 -05:00
parent 24b25c2291
commit 2c24af5ac9
11 changed files with 109 additions and 91 deletions
@@ -0,0 +1,11 @@
import type { LayoutServerLoad } from './$types';
export const load: LayoutServerLoad = async ({ fetch }) => {
try {
const res = await fetch('/api/auth/info');
const options = await res.json();
return { options };
} catch {
return { options: null };
}
};