docs: update client to authClient in Svelte and Solid examples for consistency (#7321)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Bereket Engida
2026-01-12 20:51:31 -08:00
committed by Bereket Engida
parent 49ff6e8386
commit c321986fc6

View File

@@ -137,8 +137,8 @@ In addition to the standard methods, the client provides hooks to easily access
<Tab value="Svelte">
```svelte title="user.svelte"
<script lang="ts">
import { client } from "$lib/client";
const session = client.useSession();
import { authClient } from "$lib/auth-client";
const session = authClient.useSession();
</script>
<div
@@ -179,11 +179,11 @@ In addition to the standard methods, the client provides hooks to easily access
<Tab value="Solid">
```tsx title="user.tsx"
import { client } from "~/lib/client";
import { authClient } from "~/lib/auth-client";
import { Show } from 'solid-js';
export default function Home() {
const session = client.useSession()
const session = authClient.useSession()
return (
<Show
when={session()}