@clerk/shared
Version:
Internal package utils used by the Clerk SDKs
8 lines • 723 B
text/typescript
import { PasswordSettingsData } from "../../../types/userSettings.mjs";
//#region src/internal/clerk-js/passwords/complexity.d.ts
type ComplexityErrors = { [key in keyof Partial<Omit<PasswordSettingsData, 'disable_hibp' | 'min_zxcvbn_strength' | 'show_zxcvbn'>>]?: boolean };
type UsePasswordComplexityConfig = Omit<PasswordSettingsData, 'disable_hibp' | 'min_zxcvbn_strength' | 'show_zxcvbn'>;
declare const validate: (password: string, config: UsePasswordComplexityConfig) => ComplexityErrors;
declare const createValidateComplexity: (config: UsePasswordComplexityConfig) => (password: string) => ComplexityErrors;
//#endregion
export { ComplexityErrors, UsePasswordComplexityConfig, createValidateComplexity, validate };