Prints tokens (id token, access token and refresh token) for specified user and user pool to the console. User's password and username are specified interactively using CLI. Please note that printing sensitive information to the console can be dangerous, and you shouldn't use this for production user pools.
stacktape userpool-get-token --region <<region>> --stage <<stage>> --userPoolName <<userPoolName>> --tokenType <<tokenType>>
Arguments API reference
AWS region for given command.
Stage to deploy your stack to. Example stages are
Type of the token the print to the console.
accessToken can be used to access protected services or endpoints
idToken can be used to retrieve information about the identity of the bearer
refreshToken can be used to get new tokens, when current one expires
Name of the user pool (as specified in configuration file).
Path (relative to cwd) to your stacktape configuration file. By default, it's
Current working directory. All file paths in your config will be resolved relatively to specified cwd. Default: directory containing configuration file.
Format of logs that are being printed to your console. You can learn more at https://docs.stacktape.com/cli/using-cli Default: 'fancy'
Level of logs that are being printed to the console. You can use 'debug' for more information about what's being done, or 'error' to show only errors. Default: 'info'
AWS profile to use.