feat(react/settings): port totp settings

This commit is contained in:
Elian Doran
2025-08-19 10:37:14 +03:00
parent 73ff41f2b2
commit cfb3607052
7 changed files with 229 additions and 349 deletions

View File

@@ -109,3 +109,19 @@ export interface DatabaseBackup {
}
export type ChangePasswordResponse = Response;
export interface TOTPStatus {
set: boolean;
}
export interface TOTPGenerate {
success: boolean;
message: string;
}
export interface TOTPRecoveryKeysResponse {
success: boolean;
recoveryCodes?: string[];
keysExist?: boolean;
usedRecoveryCodes?: string[];
}