diff --git a/demo/nextjs/lib/auth-client.ts b/demo/nextjs/lib/auth-client.ts
index dd397358..0680a6d9 100644
--- a/demo/nextjs/lib/auth-client.ts
+++ b/demo/nextjs/lib/auth-client.ts
@@ -28,3 +28,5 @@ export const {
useListOrganizations,
useActiveOrganization,
} = client;
+
+client.$Infer;
diff --git a/docs/components/sidebar-content.tsx b/docs/components/sidebar-content.tsx
index 1b4eef5d..772f135a 100644
--- a/docs/components/sidebar-content.tsx
+++ b/docs/components/sidebar-content.tsx
@@ -196,6 +196,23 @@ export const contents: Content[] = [
),
},
+ {
+ title: "Typescript",
+ href: "/docs/concepts/typescript",
+ icon: () => (
+
+ ),
+ },
{
title: "User & Accounts",
href: "/docs/concepts/user-accounts",
@@ -228,7 +245,7 @@ export const contents: Content[] = [
clipRule="evenodd"
>
@@ -244,7 +261,7 @@ export const contents: Content[] = [
viewBox="0 0 24 24"
>
(options: O) => {
},
api: api as InferAPI,
options: authContext.options as O,
- $infer: {} as {
- session: {
+ $Infer: {} as {
+ Session: {
session: Prettify>;
user: Prettify>;
};
diff --git a/todo.md b/todo.md
index b4bdf531..5dfbdcbe 100644
--- a/todo.md
+++ b/todo.md
@@ -11,13 +11,13 @@
[ ] fix bun problem
[x] fix the issue with the client triggers not working fot 2 consecutive calls
[ ] add a way to specify on the client to use the base path as the whole path
-[ ] implement magic links
+[x] implement magic links
## Docs
[x] specify everywhere `auth` should be exported
[-] add a note about better-sqlite3 requiring to be added to webpack externals or find alternative that doesn't require it
-[ ] add a section about updating user and changing password
+[x] add a section about updating user and changing password
[ ] mention how users can get user and session types
[ ] add a doc about account linking
[ ] remove the section about using useSession in next with initialValue