feat: turbostarter boilerplate
Production-ready Next.js boilerplate with: - Runtime env validation (fail-fast on missing vars) - Feature-gated config (S3, Stripe, email, OAuth) - Docker + Coolify deployment pipeline - PostgreSQL + pgvector, MinIO S3, Better Auth - TypeScript strict mode (no ignoreBuildErrors) - i18n (en/es), AI modules, billing, monitoring Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
30
packages/auth/src/client/web.ts
Normal file
30
packages/auth/src/client/web.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { passkeyClient } from "@better-auth/passkey/client";
|
||||
import {
|
||||
magicLinkClient,
|
||||
twoFactorClient,
|
||||
anonymousClient,
|
||||
adminClient,
|
||||
organizationClient,
|
||||
inferAdditionalFields,
|
||||
lastLoginMethodClient,
|
||||
} from "better-auth/client/plugins";
|
||||
import { createAuthClient } from "better-auth/react";
|
||||
|
||||
import type { auth } from "../server";
|
||||
import type { AuthClientOptions } from "../types";
|
||||
|
||||
export const createClient = (options?: AuthClientOptions) =>
|
||||
createAuthClient({
|
||||
...options,
|
||||
plugins: [
|
||||
...(options?.plugins ?? []),
|
||||
passkeyClient(),
|
||||
anonymousClient(),
|
||||
magicLinkClient(),
|
||||
twoFactorClient(),
|
||||
adminClient(),
|
||||
organizationClient(),
|
||||
lastLoginMethodClient(),
|
||||
inferAdditionalFields<typeof auth>(),
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user