Prettier
This commit is contained in:
@@ -24,7 +24,7 @@ export function generateMfaBackupCodes(user_id: string) {
|
||||
for (let i = 0; i < 10; i++) {
|
||||
const code = BackupCode.create({
|
||||
user: { id: user_id },
|
||||
code: crypto.randomBytes(4).toString("hex"), // 8 characters
|
||||
code: crypto.randomBytes(4).toString("hex"), // 8 characters
|
||||
consumed: false,
|
||||
expired: false,
|
||||
});
|
||||
@@ -32,4 +32,4 @@ export function generateMfaBackupCodes(user_id: string) {
|
||||
}
|
||||
|
||||
return backup_codes;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user