mirror of
https://github.com/shuaiplus/nodewarden.git
synced 2026-08-05 14:50:11 +00:00
feat: add passkey-based two-factor authentication
This commit is contained in:
@@ -907,6 +907,7 @@ export function createDemoMainRoutesProps(base: AppMainRoutesProps, notify: Noti
|
||||
adminLoading: false,
|
||||
adminError: '',
|
||||
totpEnabled: true,
|
||||
passkey2faEnabled: false,
|
||||
authorizedDevices: state.authorizedDevices,
|
||||
authorizedDevicesLoading: false,
|
||||
authorizedDevicesError: '',
|
||||
@@ -1060,6 +1061,16 @@ export function createDemoMainRoutesProps(base: AppMainRoutesProps, notify: Noti
|
||||
onSavePasswordHint: readonly,
|
||||
onEnableTotp: readonly,
|
||||
onOpenDisableTotp: readonlyVoid,
|
||||
onGetTwoFactorPasskeySettings: async () => ({ enabled: false, keys: [] }),
|
||||
onCreateTwoFactorPasskey: async () => {
|
||||
await readonly();
|
||||
return { enabled: false, keys: [] };
|
||||
},
|
||||
onDeleteTwoFactorPasskey: async () => {
|
||||
await readonly();
|
||||
return { enabled: false, keys: [] };
|
||||
},
|
||||
onDisableTwoFactorPasskeys: readonly,
|
||||
onGetRecoveryCode: readonlyString,
|
||||
onGetApiKey: readonlyString,
|
||||
onRotateApiKey: readonlyString,
|
||||
|
||||
Reference in New Issue
Block a user