feat: 🎸 fix recovery_codes error

This commit is contained in:
Jin 2025-03-22 12:47:49 +01:00
parent b320553d18
commit c8164c81be

View File

@ -1,5 +1,5 @@
import recovery_codes from '../../services/encryption/recovery_codes.js'; import recovery_codes from '../../services/encryption/recovery_codes.js';
import {Request} from 'express'; import type { Request } from 'express';
import { randomBytes } from 'crypto'; import { randomBytes } from 'crypto';
function setRecoveryCodes(req: Request) { function setRecoveryCodes(req: Request) {
@ -14,8 +14,10 @@ function veryifyRecoveryCode(req: Request) {
} }
function checkForRecoveryKeys() { function checkForRecoveryKeys() {
return {success return {
: true, keysExist: recovery_codes.isRecoveryCodeSet()}; success
: true, keysExist: recovery_codes.isRecoveryCodeSet()
};
} }
function generateRecoveryCodes() { function generateRecoveryCodes() {