mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-10-27 02:16:23 -04:00
- Replace CommentFormContext/Provider with a plain `useCommentFormState` hook; the context abstraction was unused outside the file - Narrow auth-client exports to only `signIn`; `authClient` and `useSession` are no longer exported - Add `getPosts()` as a canonical sorted-posts helper and use it in `getFrontMatter` and `buildFeed`, removing the redundant sort in the latter - Drop JSON feed support from `createFeedHandler` since no JSON feed route exists - Rewrite `FrontMatter` as a `Pick` over the content-collections `Post` type to stay in sync automatically
8 lines
181 B
TypeScript
8 lines
181 B
TypeScript
import { createAuthClient } from "better-auth/react";
|
|
|
|
const authClient = createAuthClient({
|
|
baseURL: process.env.NEXT_PUBLIC_BASE_URL,
|
|
});
|
|
|
|
export const { signIn } = authClient;
|