Skip to content

Adding Two Factor Auth Feature #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open

Adding Two Factor Auth Feature #101

wants to merge 29 commits into from

Conversation

tnylea
Copy link
Contributor

@tnylea tnylea commented Apr 18, 2025

This PR adds Two Factor Authentication to the React Starter Kit. This functions the same as the Livewire Starter Kit 2FA functionality, and all the App\Actions\TwoFactor are similar.

The user can now click on the Two Factor Auth tab on the left in the settings page.

CleanShot 2025-04-18 at 18 18 01@2x

They can then click Enable

CleanShot 2025-04-18 at 18 18 24@2x

This will open the QR code modal. The user can scan the QR code/security code and click continue where will have to verify the code.

CleanShot 2025-04-18 at 18 18 41@2x

Next, they will have to verify the code from their Authenticator App

CleanShot 2025-04-18 at 18 19 00@2x

After entering the correct code the user will see that 2FA has been enabled as well as a list of all their recovery codes.

CleanShot 2025-04-18 at 18 19 07@2x

Next time the user tries to login to the application they will have to verify their 2FA code before they are authenticated.

CleanShot 2025-04-18 at 18 19 36@2x

Other Starter Kit 2FA Feature PR's

Vue: github.com/laravel/vue-starter-kit/pull/120
Livewire: github.com/laravel/livewire-starter-kit/pull/84


/* Allows us to transition an element from a certain length to its intrinsic size */
/* Learn more here: https://css-tricks.com/almanac/properties/i/interpolate-size/ */
interpolate-size: allow-keywords;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's an example of what this allows us to do.

CleanShot 2025-04-21 at 12 00 50

It allows animation from h-0 to h-auto.

Copy link
Contributor

@SkandarS0 SkandarS0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot to uninstall the radix-ui/react-tabs package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants