Display useful error messages when passing invalid/expired API tokens to commands.

Review Request #13128 — Created June 27, 2023 and updated

maubin
RBTools
release-5.x
rbtools

This displays useful error messages when passing invalid or expired API tokens
to a command. Previously, if you passed an API token that was expired or
invalidated it would silently fail and then prompt the user to enter a
username and password.

  • Tested rbt api-get, and rbt login commands with
    the --api-token option. Used valid, invalid and expired tokens.
  • Tested the above commands with valid and invalid --username and
    --password options.
Summary
Display useful error messages when passing invalid/expired API tokens to commands.
Checks run (2 succeeded)
flake8 passed.
JSHint passed.
chipx86
  1. Ship It!
  2. 
      
Loading...