mirror of
https://github.com/HeyPuter/puter.git
synced 2026-04-24 16:28:29 -05:00
Document 2FA wizard structure
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
Plan:
|
||||
Components: OneAtATimeView < ... >
|
||||
|
||||
Screen 1: QR code and entry box for testing
|
||||
Components: Flexer < QRCodeView, CodeEntryView, ActionsView >
|
||||
Logic:
|
||||
- when CodeEntryView has a value, check it against the QR code value...
|
||||
... then go to the next screen
|
||||
- CodeEntryView will have callbacks: `verify`, `on_verified`
|
||||
- cancel action
|
||||
|
||||
Screen 2: Recovery codes
|
||||
Components: Flexer < RecoveryCodesView, ConfirmationsView, ActionsView >
|
||||
Logic:
|
||||
- done action
|
||||
- cancel action
|
||||
- when done action is clicked, call /auth/configure-2fa/enable
|
||||
|
||||
*/
|
||||
|
||||
const UIWindow2FASetup = async function UIWindow2FASetup () {
|
||||
}
|
||||
Reference in New Issue
Block a user