mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-06-02 21:16:14 -04:00
* feat(auth): add passkey authentication support * fix: implement AI review feedback * fix: use non-unique index for passkey_credentialID_idx in migration * refactor(passkeys): use TanStack mutations for passkey CRUD operations * chore: restore lockfile from main and add @better-auth/passkey * chore: fix conflicts * refactor(passkey-login): simplify passkey autofill event * refactor(settings-passkeys): ux improvements --------- Co-authored-by: Nicolas Meienberger <github@thisprops.com>
24 lines
577 B
TypeScript
24 lines
577 B
TypeScript
import { createAuthClient } from "better-auth/react";
|
|
import {
|
|
twoFactorClient,
|
|
usernameClient,
|
|
adminClient,
|
|
organizationClient,
|
|
inferAdditionalFields,
|
|
} from "better-auth/client/plugins";
|
|
import { ssoClient } from "@better-auth/sso/client";
|
|
import { passkeyClient } from "@better-auth/passkey/client";
|
|
import type { auth } from "~/server/lib/auth";
|
|
|
|
export const authClient = createAuthClient({
|
|
plugins: [
|
|
inferAdditionalFields<typeof auth>(),
|
|
usernameClient(),
|
|
adminClient(),
|
|
organizationClient(),
|
|
ssoClient(),
|
|
twoFactorClient(),
|
|
passkeyClient(),
|
|
],
|
|
});
|