feat: move totp and passkeys into plugins (C1)

This commit is contained in:
LukeGus committed 2026-09-24 16:57:24 -05:00
1 parent f4f26a9b8b
commit 5c18435105
235 files changed
+22545 -5610

No files matched your search

+14
View File
@@ -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;