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

Added --validate flag to twitch token #277

Merged
merged 3 commits into from
Sep 23, 2023
Merged

Added --validate flag to twitch token #277

merged 3 commits into from
Sep 23, 2023

Conversation

Xemdo
Copy link
Contributor

@Xemdo Xemdo commented Sep 23, 2023

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Problem/Feature

Solved #271 by adding --validate to twitch token

Description of Changes:

Added --validate flag to twitch token:

$ ./twitch-cli token --validate <user token>
Client ID: 718ozxefxg7qak0jsvmrahw9pq3qch
Token Type: User Access Token
User ID: 57047445
User Login: xemdo
Expires In: 15145 (Sat, 23 Sep 2023 06:15:33 UTC)
Scopes:
- channel:read:polls
- channel:read:vips
- user:read:follows
- user:read:subscriptions

$ ./twitch-cli token --validate <app token>
Client ID: dy5l2nnrf1fybxoupqb73kw5ksqhw6
Token Type: App Access Token
Expires In: 5053085 (Mon, 20 Nov 2023 13:41:43 UTC)
Scopes: None

Checklist

  • My code follows the Contribution Guide
  • I have self-reviewed the changes being requested
  • I have made comments on pieces of code that may be difficult to understand for other editors
  • I have updated the documentation (if applicable)

@Xemdo Xemdo merged commit 94c00c5 into main Sep 23, 2023
8 checks passed
@Xemdo Xemdo deleted the validate_token_feature branch September 23, 2023 17:51
@Xemdo Xemdo mentioned this pull request Sep 23, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant