JA
ベータ版の翻訳

@yohangel / auth-react

1.0.0 ▾
MIT
GitHub

Better Auth 用 React ログイン UI:2FA 付きサインイン、サインアップ、ソーシャルボタン、フック

コード6 ファイルコンテキスト約 468 トークンスキャン合格

.genpmignore 適用後に組み込まれる正確なツリーです。固定先:

src/lib/auth-react/client.ts読み取り専用 · 7145b9d
// Cliente de Better Auth para React (Next.js, Vite, Remix…). Mismo origen por defecto: si tu API vive en otro
// dominio, pon aquí su URL y añade el origen de esta app a AUTH_TRUSTED_ORIGINS en el servidor.
import { twoFactorClient } from 'better-auth/client/plugins';
import { createAuthClient } from 'better-auth/react';

export const AUTH_BASE_URL: string | undefined = undefined;

export const authClient = createAuthClient({
  ...(AUTH_BASE_URL ? { baseURL: AUTH_BASE_URL } : {}),
  plugins: [twoFactorClient()],
});

export const { useSession, signIn, signUp, signOut } = authClient;

@yohangel/auth-react を報告

パッケージを報告するには GitHub でログインしてください。

GitHub で続ける