Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 | 1x 1x 35x 35x | import { randomBytes } from './randomBytes' export const generatePassword = async (): Promise<string> => { const randomPassword = (await randomBytes(32)).toString('hex') // Make first found letter uppercase because hex string doesn't meet password requirements // Special characters at the end of password to make comply with cognito requirements return randomPassword.replace(/[a-f]/, 'A') + '!' } |