From 0cb64aaacd29d0d6116e4eead3cf2f78700da8b8 Mon Sep 17 00:00:00 2001 From: Pushpak Chhajed Date: Tue, 9 Sep 2025 16:46:15 +0530 Subject: [PATCH 1/3] Add 2FA docs --- starter-kits.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/starter-kits.md b/starter-kits.md index 699d88a17f1..9d140d5f0ba 100644 --- a/starter-kits.md +++ b/starter-kits.md @@ -11,6 +11,7 @@ - [Vue](#vue-customization) - [Livewire](#livewire-customization) - [WorkOS AuthKit Authentication](#workos) +- [Two-Factor Authentication](#two-factor-authentication) - [Inertia SSR](#inertia-ssr) - [Community Maintained Starter Kits](#community-maintained-starter-kits) - [Frequently Asked Questions](#faqs) @@ -309,6 +310,22 @@ When using a WorkOS powered starter kit, we recommend that you disable "Email + In addition, we recommend that you configure your WorkOS AuthKit session inactivity timeout to match your Laravel application's configured session timeout threshold, which is typically two hours. + +### Two-Factor Authentication + +The Starter Kit comes with built-in Two-Factor Authentication (2FA) powered by [Laravel Fortify](https://laravel.com/docs/12.x/fortify#two-factor-authentication), adding an extra layer of security to user accounts. + +Users can protect their accounts using Time-based One-Time Password (TOTP) authenticator apps. + +Two-Factor Authentication is enabled by default and includes all options provided by [Fortify’s 2FA features](https://laravel.com/docs/12.x/fortify#two-factor-authentication): + +```php +Features::twoFactorAuthentication([ + 'confirm' => true, + 'confirmPassword' => true, +]); +``` + ### Inertia SSR From 0128933247a72777973671baf8b8a9f41cda105d Mon Sep 17 00:00:00 2001 From: Pushpak Chhajed Date: Mon, 22 Sep 2025 21:04:14 +0530 Subject: [PATCH 2/3] Update starter-kits.md --- starter-kits.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/starter-kits.md b/starter-kits.md index 9d140d5f0ba..69cfd7a6ac3 100644 --- a/starter-kits.md +++ b/starter-kits.md @@ -317,7 +317,7 @@ The Starter Kit comes with built-in Two-Factor Authentication (2FA) powered by [ Users can protect their accounts using Time-based One-Time Password (TOTP) authenticator apps. -Two-Factor Authentication is enabled by default and includes all options provided by [Fortify’s 2FA features](https://laravel.com/docs/12.x/fortify#two-factor-authentication): +Two-Factor Authentication is enabled by default and support all options provided by [Fortify’s 2FA features](https://laravel.com/docs/12.x/fortify#two-factor-authentication): ```php Features::twoFactorAuthentication([ From 45689768286204b46811a56fb29570d3a8c681e6 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 24 Sep 2025 11:18:25 -0500 Subject: [PATCH 3/3] formatting --- starter-kits.md | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/starter-kits.md b/starter-kits.md index 69cfd7a6ac3..22a41bd5860 100644 --- a/starter-kits.md +++ b/starter-kits.md @@ -10,8 +10,8 @@ - [React](#react-customization) - [Vue](#vue-customization) - [Livewire](#livewire-customization) -- [WorkOS AuthKit Authentication](#workos) - [Two-Factor Authentication](#two-factor-authentication) +- [WorkOS AuthKit Authentication](#workos) - [Inertia SSR](#inertia-ssr) - [Community Maintained Starter Kits](#community-maintained-starter-kits) - [Frequently Asked Questions](#faqs) @@ -270,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 @@ -310,22 +324,6 @@ When using a WorkOS powered starter kit, we recommend that you disable "Email + In addition, we recommend that you configure your WorkOS AuthKit session inactivity timeout to match your Laravel application's configured session timeout threshold, which is typically two hours. - -### Two-Factor Authentication - -The Starter Kit comes with built-in Two-Factor Authentication (2FA) powered by [Laravel Fortify](https://laravel.com/docs/12.x/fortify#two-factor-authentication), adding an extra layer of security to user accounts. - -Users can protect their accounts using Time-based One-Time Password (TOTP) authenticator apps. - -Two-Factor Authentication is enabled by default and support all options provided by [Fortify’s 2FA features](https://laravel.com/docs/12.x/fortify#two-factor-authentication): - -```php -Features::twoFactorAuthentication([ - 'confirm' => true, - 'confirmPassword' => true, -]); -``` - ### Inertia SSR