Skip to content

Commit 64500d7

Browse files
[12.x] Add Two-Factor Authentication Docs (#10807)
* Add 2FA docs * Update starter-kits.md * formatting --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent edb3e5f commit 64500d7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

starter-kits.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- [React](#react-customization)
1111
- [Vue](#vue-customization)
1212
- [Livewire](#livewire-customization)
13+
- [Two-Factor Authentication](#two-factor-authentication)
1314
- [WorkOS AuthKit Authentication](#workos)
1415
- [Inertia SSR](#inertia-ssr)
1516
- [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
269270
</x-layouts.auth.split>
270271
```
271272

273+
<a name="two-factor-authentication"></a>
274+
## Two-Factor Authentication
275+
276+
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.
277+
278+
Two-factor authentication is enabled by default and supports all options provided by [Fortify](/docs/{{version}}/fortify#two-factor-authentication):
279+
280+
```php
281+
Features::twoFactorAuthentication([
282+
'confirm' => true,
283+
'confirmPassword' => true,
284+
]);
285+
```
286+
272287
<a name="workos"></a>
273288
## WorkOS AuthKit Authentication
274289

0 commit comments

Comments
 (0)