bootdotdev / bootdev

A CLI used to complete coding challenges and lessons on Boot.dev
https://www.boot.dev
MIT License
470 stars 17 forks source link

CLI: show tokens in auth headers #15

Closed skovranek closed 6 months ago

skovranek commented 6 months ago

Before the awesome bootdev cli tool, users could see "jwtToken1" variables be replaced with the actual token in the feedback. This was a fairly recent change that all but eliminated reports that the tests were broken. Users see the "jwtToken1" in the request and assume the problem is the test instead of their faulty code.

If the CLI doesn't already, is it maybe worth considering possibly adding this to the bootdev CLI someday?

Example report about "broken tests" because users don't realize their code is wrong:

https://github.com/bootdotdev/courses/issues/6894

Example CLI response missing interpolation:

Screenshot 2024-05-05 at 11 28 56 PM

Example client response missing interpolation:

Screenshot 2024-05-05 at 11 31 25 PM
wagslane commented 6 months ago

Yes, let's update the CLI to show the actual token post-interpolation in the console