Skip to content

[Bug] twitch token provides no token when using Public client type #314

Description

@Xemdo

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, 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: []

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions