mirror of
https://github.com/standardnotes/app
synced 2026-10-02 12:14:02 -04:00
* feat: add dim and blur to unavailable 2fa * feat: message over disabled 2FA * feat: 2fa remove overlay and dimming * fix: add newline to _ui,css * fix: tsc errors * Update app/assets/javascripts/preferences/panes/two-factor-auth/TwoFactorAuthView.tsx Co-authored-by: Vardan Hakobyan <[email protected]> * refactor: rename s to status Co-authored-by: Vardan Hakobyan <[email protected]>
14 lines
293 B
TypeScript
14 lines
293 B
TypeScript
export interface MfaProvider {
|
|
isMfaActivated(): Promise<boolean>;
|
|
|
|
generateMfaSecret(): Promise<string>;
|
|
|
|
getOtpToken(secret: string): Promise<string>;
|
|
|
|
enableMfa(secret: string, otpToken: string): Promise<void>;
|
|
|
|
disableMfa(): Promise<void>;
|
|
|
|
isMfaFeatureAvailable(): boolean;
|
|
}
|