chore: lint with oxc

This commit is contained in:
Ephraim Atta-Duncan
2024-02-15 06:11:50 +00:00
parent f72b669f67
commit 49cddfab38
5 changed files with 91 additions and 82 deletions

View File

@ -43,7 +43,7 @@ export const setupTwoFactorAuthentication = async ({
const secret = crypto.randomBytes(10);
const backupCodes = new Array(10)
const backupCodes = Array.from({ length: 10 })
.fill(null)
.map(() => crypto.randomBytes(5).toString('hex'))
.map((code) => `${code.slice(0, 5)}-${code.slice(5)}`.toUpperCase());