aws-cognito-temporary-password-generator
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

Cognito Temporary Password Generator

/**
 * Configuration of Password generation.
 * Only possible to specify length. default: 16
 * All Other requirements are automatically satisfy
 * Require numbers
 * Require a special character from this set:
 * = + - ^ $ * . [ ] { } ( ) ? " ! @ # % & / \ , > < ' : ; | _ ~ `
 * Require uppercase letters
 * Require lowercase letters
 * 
 * https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-policies.html
 */

Usage

const generator = new CognitoPassword()
// generate password. Length is 16.
const password = generator.generate() 
const generator = new CognitoPassword()
// generate password. Length is 6.
const password = generator.generate({length: 6}) 

Readme

Keywords

none

Package Sidebar

Install

npm i aws-cognito-temporary-password-generator

Weekly Downloads

238

Version

0.1.3

License

MIT

Unpacked Size

19.7 kB

Total Files

12

Last publish

Collaborators

  • hugtech.io