diff --git a/starter-kits.md b/starter-kits.md index 699d88a17f..22a41bd586 100644 --- a/starter-kits.md +++ b/starter-kits.md @@ -10,6 +10,7 @@ - [React](#react-customization) - [Vue](#vue-customization) - [Livewire](#livewire-customization) +- [Two-Factor Authentication](#two-factor-authentication) - [WorkOS AuthKit Authentication](#workos) - [Inertia SSR](#inertia-ssr) - [Community Maintained Starter Kits](#community-maintained-starter-kits) @@ -269,6 +270,20 @@ To change your authentication layout, modify the layout that is used by your app ``` + +## Two-Factor Authentication + +All starter kits include built-in two-factor authentication (2FA) powered by [Laravel Fortify](/docs/{{version}}/fortify#two-factor-authentication), adding an extra layer of security to user accounts. Users can protect their accounts using any Time-based One-Time Password (TOTP) supporting authenticator application. + +Two-factor authentication is enabled by default and supports all options provided by [Fortify](/docs/{{version}}/fortify#two-factor-authentication): + +```php +Features::twoFactorAuthentication([ + 'confirm' => true, + 'confirmPassword' => true, +]); +``` + ## WorkOS AuthKit Authentication