mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 07:05:24 +00:00
feat: move totp and passkeys into plugins (C1)
This commit is contained in:
1 parent
f4f26a9b8b
commit
5c18435105
235 files changed
+22545
-5610
No files matched your search
@@ -466,8 +466,22 @@ export interface LoginMethodContribution {
|
||||
titleKey: string;
|
||||
icon?: IconComponent;
|
||||
component: ComponentType<LoginMethodUIProps>;
|
||||
/**
|
||||
* "inline" also draws the method under the password form, for a local
|
||||
* method people use instead of a password (a passkey). Otherwise it only
|
||||
* shows in the list of other sign-in methods.
|
||||
*/
|
||||
placement?: "inline";
|
||||
/** Enrolment, shown in Settings > Security (registering a passkey). */
|
||||
enrollment?: ComponentType<Record<string, unknown>>;
|
||||
}
|
||||
|
||||
/**
|
||||
* How an SSH keyboard-interactive prompt is shown by TOTPDialog: a code field
|
||||
* (the default), a password, a menu choice, or a push approval.
|
||||
*/
|
||||
export type MFAPromptMode = "totp" | "password" | "menu" | "push";
|
||||
|
||||
/** What the second-factor step hands a factor's UI. */
|
||||
export interface SecondFactorUIProps {
|
||||
factorId: string;
|
||||
|
||||
Reference in new issue
Block a user