From 0cb64aaacd29d0d6116e4eead3cf2f78700da8b8 Mon Sep 17 00:00:00 2001 From: Pushpak Chhajed Date: Tue, 9 Sep 2025 16:46:15 +0530 Subject: [PATCH] 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