UNPKG

better-auth-credentials-plugin

Version:

Generic credentials authentication plugin for Better Auth (To auth with ldap, external API, etc...)

9 lines (8 loc) 437 B
import { User } from "better-auth"; import { ZodTypeAny } from "zod/v3"; import type { credentials } from "./index.js"; import { defaultCredentialsSchema } from "./schema.js"; export declare const credentialsClient: <U extends User = User, P extends string = "/sign-in/credentials", Z extends ZodTypeAny = typeof defaultCredentialsSchema>() => { id: "credentials"; $InferServerPlugin: ReturnType<typeof credentials<U, P, Z>>; };