
Security News
Risky Biz Podcast: AI Agents Are Raising the Stakes for Software Supply Chain Security
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.
@sentinel-password/react
Advanced tools
React hooks and components for @sentinel-password/core - password validation made simple
React hook for password validation using @sentinel-password/core. Provides debounced validation with full TypeScript support.
Documentation | Interactive Playground | API Reference
usePasswordValidator hook - Debounced password validation with configurable delay@sentinel-password/corenpm install @sentinel-password/react @sentinel-password/core
# or
pnpm add @sentinel-password/react @sentinel-password/core
# or
yarn add @sentinel-password/react @sentinel-password/core
import { usePasswordValidator } from '@sentinel-password/react'
function PasswordForm() {
const { password, setPassword, result, isValidating } = usePasswordValidator({
debounceMs: 300,
minLength: 10,
requireUppercase: true,
})
return (
<div>
<input
type="password"
value={password}
onChange={(e) => setPassword(e.target.value)}
placeholder="Enter password"
/>
{isValidating && <span>Validating...</span>}
{result && (
<div>
<p>Strength: {result.strength}</p>
{result.feedback.suggestions.map((s, i) => (
<p key={i}>{s}</p>
))}
</div>
)}
</div>
)
}
usePasswordValidator(options?)Returns an object with:
| Property | Type | Description |
|---|---|---|
password | string | Current password value |
setPassword | (password: string) => void | Update password and trigger validation |
result | ValidationResult | undefined | Validation result (undefined until first validation) |
isValidating | boolean | Whether validation is in progress (during debounce) |
validate | () => void | Manually trigger validation |
reset | () => void | Reset password and validation state |
Extends all @sentinel-password/core options plus:
| Option | Type | Default | Description |
|---|---|---|---|
debounceMs | number | 300 | Debounce delay in ms (0 to disable) |
validateOnMount | boolean | false | Validate immediately on mount |
validateOnChange | boolean | false | Validate on every change vs. after debounce |
@sentinel-password/core - Core validation engine (zero dependencies)@sentinel-password/react-components - Accessible, headless React componentsMIT © Aleksei Kankov
FAQs
React hook (usePasswordValidator) for @sentinel-password/core - password validation made simple
The npm package @sentinel-password/react receives a total of 5,031 weekly downloads. As such, @sentinel-password/react popularity was classified as popular.
We found that @sentinel-password/react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.