Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate token feature #271

Closed
1 task done
Xemdo opened this issue Sep 6, 2023 · 3 comments
Closed
1 task done

Validate token feature #271

Xemdo opened this issue Sep 6, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@Xemdo
Copy link
Contributor

Xemdo commented Sep 6, 2023

Tell us about your feature request

Right now twitch token has the ability to revoke, such as:

twitch token --client-id CLIENT_ID --revoke OAUTH_TOKEN

In a similar fashion, we should have a way to validate tokens:

twitch token --validate OAUTH_TOKEN

This would return information similar to Barry's Token Checker, which uses the /oauth2/validate endpoint.

Disclaimer

  • I agree
@Xemdo Xemdo added the enhancement New feature or request label Sep 6, 2023
@GStefanowich
Copy link

Is the CLI capable of doing ||s with if a CLI parameter is present?

Could you theoretically do

twitch token --validate OAUTH_TOKEN --revoke
twitch token --validate --revoke OAUTH_TOKEN

without having to do

twitch token --validate OAUTH_TOKEN --revoke OAUTH_TOKEN

@Xemdo
Copy link
Contributor Author

Xemdo commented Sep 6, 2023

Ideally, you would validate or revoke. Doing both doesn't provide much since revoke requires a valid token, and will fail if the token is not valid.

@Xemdo
Copy link
Contributor Author

Xemdo commented Sep 23, 2023

Added in #277

@Xemdo Xemdo closed this as completed Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants