Files
stanza/registry/modules/auth-better-auth/templates/next/auth-client.ts
T
jake a50ababb49 feat: add sqlite drizzle adapter for better-auth and clerk codemods
- split better-auth drizzle adapters into separate postgres/sqlite variants with a dedicated sqlite schema template
- simplify auth-client templates to use `createAuthClient()` without an explicit baseURL
- export `Node` type and `SyntaxKind` enum from the codemods package
- add codemod for the auth-clerk module
2026-05-20 12:06:48 -04:00

7 lines
285 B
TypeScript

import { createAuthClient } from "better-auth/react";
// Defaults to the current origin. For cross-origin auth (e.g. a separate
// API host), pass `baseURL: "https://your-domain.com"` here.
// https://better-auth.com/docs/concepts/client
export const authClient = createAuthClient();