Skip to content

Commit

Permalink
Merge pull request #327 from twitchdev/fix-validate-scopes-issue
Browse files Browse the repository at this point in the history
Fixed issue where no scopes message was saying user id instead of scopes
  • Loading branch information
Xemdo authored Jun 20, 2024
2 parents 30cf222 + 28609fb commit a595239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func loginCmdRun(cmd *cobra.Command, args []string) error {
lightYellow("Expires In: %v\n", white("%v (%v)", strconv.FormatInt(r.ExpiresIn, 10), expiresInTimestamp))

if len(r.Scopes) == 0 {
lightYellow("User ID: %v\n", white("None"))
lightYellow("Scopes: %v\n", white("None"))
} else {
lightYellow("Scopes:\n")
for _, s := range r.Scopes {
Expand Down

0 comments on commit a595239

Please sign in to comment.