When a Client ID is set to the client type of "Public", twitch token -u doesn't work.
This seems to be happening because authorization code grant flow doesn't work alongside Device Code Flow, and twitch token doesn't support implicit auth.
Likely solution is to separate DCF and authorization code grant flow, and return an error message when trying to use standard twitch token -u with a public client.
Operating System
All
Architecture Version (x86, x64, arm, etc)
All
Steps to reproduce
twitch token -u with a Public client
Relevant log output
> twitch token -u --client-id=5g04g9bfn1z60xk22shoj3hmy4bymt
Opening browser. Press Ctrl+C to cancel...
2024/02/29 15:28:04 Waiting for authorization response ...
2024/02/29 15:28:05 Closing local server ...
2024/02/29 15:28:05 User Access Token:
Refresh Token:
Expires At: 2024-02-29 23:28:05.8458449 +0000 UTC
Scopes: []
What is the problem?
When a Client ID is set to the client type of "Public",
twitch token -u
doesn't work. This seems to be happening because authorization code grant flow doesn't work alongside Device Code Flow, andtwitch token
doesn't support implicit auth.Likely solution is to separate DCF and authorization code grant flow, and return an error message when trying to use standard
twitch token -u
with a public client.Operating System
All
Architecture Version (x86, x64, arm, etc)
All
Steps to reproduce
twitch token -u
with a Public clientRelevant log output