better-auth
Version:
The most comprehensive authentication library for TypeScript.
41 lines (38 loc) • 1.24 kB
text/typescript
import { p as AuthContext, s as checkPassword } from '../../shared/better-auth.CdI2sJZM.mjs';
import 'kysely';
import 'better-call';
import 'zod/v4';
import '../../shared/better-auth.ZSfSbnQT.mjs';
import '../../shared/better-auth.QdXfKtIf.mjs';
import 'jose';
import 'zod/v4/core';
import 'zod';
import 'better-sqlite3';
import 'bun:sqlite';
interface HaveIBeenPwnedOptions {
customPasswordCompromisedMessage?: string;
}
declare const haveIBeenPwned: (options?: HaveIBeenPwnedOptions) => {
id: "haveIBeenPwned";
init(ctx: AuthContext): {
context: {
password: {
hash(password: string): Promise<string>;
verify: (data: {
password: string;
hash: string;
}) => Promise<boolean>;
config: {
minPasswordLength: number;
maxPasswordLength: number;
};
checkPassword: typeof checkPassword;
};
};
};
$ERROR_CODES: {
readonly PASSWORD_COMPROMISED: "The password you entered has been compromised. Please choose a different password.";
};
};
export { haveIBeenPwned };
export type { HaveIBeenPwnedOptions };