thunderclient / thunder-client-support

Thunder Client is a lightweight Rest API Client Extension for VS Code.
https://www.thunderclient.com
Other
3.62k stars 127 forks source link

Add option to CLI to re-generate oauth token #1579

Open NeariX67 opened 1 month ago

NeariX67 commented 1 month ago

Describe the bug My requests fail using the CLI, but are fine running in VSCode. I'm asuming this is because the CLI has an old OAuth Token with wrong permissions. It's easy to generate a new token in the UI (which is not shared with CLI) but there is no option to do the equivalent with the CLI.

To Reproduce

Expected behavior Re-run token generation on configuration change or before collection is run

Platform:

Are you using the free version/paid version/trial: Trial

rangav commented 1 month ago

@NeariX67

please generate token from OAuth tab first in the UI.

then run in CLI it will work.

NeariX67 commented 1 month ago

Auth code does not change in CLI when generating a new token using the UI.

rangav commented 1 month ago

It will use the same code until expiry and generate a new token after expiration

NeariX67 commented 1 month ago

i don't want to wait until expiry.

rangav commented 1 month ago

what Grant Type are you using?

Screenshot 2024-07-26 at 18 48 06
NeariX67 commented 1 month ago

Client Credentials

rangav commented 1 month ago

currently not possible to generate new token on every request, only generate new on expiry