kind-work/two-fa
A Laravel package for adding two-factor authentication to your applications. It helps secure user accounts with an additional verification step and integrates into existing auth flows, giving teams a simple way to strengthen login protection.
kind-work/two-fa) covers the well-trodden 2FA surface — TOTP enrollment, QR provisioning, recovery codes, and "remember this device" — which is exactly the area where in-house implementations most often ship subtle security bugs (timing-safe comparison, replay windows, recovery-code storage). Adopting it converts a security-sensitive build into an integration task.#37) means user-facing 2FA prompts, errors, and enrollment copy can be localized without forking. This directly supports launches or compliance-driven rollouts in DACH markets, where 2FA is frequently a procurement or regulatory expectation.2.0.0-beta.x versioning is a planning input — it tells you this is pre-GA and should be scheduled against a stability checkpoint, not assumed production-final.Consider adoption when:
Look elsewhere when:
2.0.0-beta line means APIs may still shift between betas; if you cannot absorb a breaking change mid-quarter, wait for stable or budget for a version-pin and upgrade task.For executives: This is a small, focused open-source package that gives us standard two-factor authentication — the login-hardening capability our security reviews and enterprise buyers keep asking for — without building it ourselves. Building equivalent functionality in-house is a multi-week effort in a high-risk area, and the failure modes (weak recovery codes, bypassable device trust) are the kind that become incidents. Adopting it compresses the timeline and lets our engineers spend their time on product differentiation instead of re-implementing a solved problem. The German translation added in the latest release also means we can ship localized 2FA screens to European customers rather than delaying that market.
For engineering: The package handles TOTP enrollment, QR provisioning, recovery codes, and trusted devices — the standard, reviewable surface. Two caveats to plan around: it is currently on a 2.0.0-beta line, so we should pin the version and schedule an upgrade checkpoint at GA; and the translation added is German only, so any other locales we need are our responsibility. Recommendation: pilot it behind a feature flag on a non-critical cohort, confirm the beta API holds for our use, and treat GA as the gate for broad rollout.
How can I help you explore Laravel packages today?