Commit Graph

15 Commits

Author SHA1 Message Date
Eric Allam b113e5a99c Fix non-MFA login (#2246)
* Fix non-MFA login

* fixed typecheck errors
2025-07-08 14:59:31 +01:00
Eric Allam b119a52e08 Implement MFA (#2244)
* Adds a new route for logging in with mfa

* New path for security page

* Adds “Security” link to account side menu

* Update the Switch component to allow label positions left and right

* Optionally hide the Close button in the Dialog title bar

* Installs `qrcode` react package for generating QR codes.

* CopyButton component now takes children

* New Security route for setting up MFA

* Adds new OTP package for the chadcn InputOTP component

* Adds new InputOTP chadcn component

* Adds InputOTP chadcn component to the MFA login screen

* InputOTP component supports variant styles

* Improvements to form handling

* Show a confirmation modal before you can disable MFA

* Revert redirect back to the dashboard for now

* Implement MFA enabling and disabling

* Refactor and cleanup mfa management code

* More cleanup

* Handle errors in the management action

* Implement mfa login flow

* recovery code input should be password

* Implement rate limiting on the mfa validation endpoint

* Better error ux

* Implement mfa emails and apply James' updates

* Use latest @better-auth/utils

* Improvements via CodeRabbit review

---------

Co-authored-by: James Ritchie <james@trigger.dev>
2025-07-08 13:44:47 +01:00
Eric Allam 3e5945fb9e Stop storing github access tokens for github authenticated users 2023-07-31 15:41:44 +01:00
Eric Allam 7efe14b835 Logging in via github should work even after changing your email address 2023-07-07 16:34:41 +01:00
Eric Allam 31d8669c9d Make github auth optional and better name the env vars 2023-06-22 17:42:51 +01:00
Matt Aitken ad26302925 Fixed all liniting issues, almost all unused imports or type imports 2023-02-10 10:23:05 +00:00
Matt Aitken 5f649d1b2e Moved postAuthentication actions into a separate file 2023-02-09 08:48:39 +00:00
Eric Allam 86c543c45f Fire off internal custom events for user.created and workflow.created 2023-01-26 23:29:15 +00:00
Matt Aitken 5171b8592c Send welcome email with a delay 2023-01-04 18:11:00 +00:00
Matt Aitken 999ef03732 Added LOGIN_ORIGIN env var that is used for GitHub login callback 2023-01-04 10:13:07 +00:00
Matt Aitken c24922e6cf Don’t create the first workflow, we’ll do that in code 2022-12-07 17:28:09 +00:00
Matt Aitken 14ec658000 Generate the personal organization slug from the user’s name or email 2022-12-07 15:53:07 +00:00
Matt Aitken 2f46559e9f When a new user is created it creates a personal workspace and first workflow 2022-12-07 15:41:07 +00:00
Matt Aitken def8d50a83 Login with GitHub and Magic link is working 2022-12-07 14:22:36 +00:00
Matt Aitken 9e1caee879 Remix auth from API Hero with Magic link and GitHub 2022-12-07 11:41:03 +00:00