A CLI tool to generate JWT tokens for Amazon Cognito User Pools.
Install the package globally using npm:
npm install -g cognito-jwt-util
cognito-jwt-util -u <username> -p <password> -c <clientId> -P <userPoolId>
Options:
-
-u, --username <username>
: Username -
-p, --password <password>
: Password -
-c, --client-id <clientId>
: Cognito User Pool Client ID -
-P, --user-pool-id <userPoolId>
: Cognito User Pool ID
Example:
cognito-jwt-util -u johndoe -p mypassword123 -c abcdef123456 -P us-east-1_abcdefgh
MIT