Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ func getOAuth2Scopes() []string {
"like.read",
"users.email",
"dm.read",
"broadcast.read",
}

writeScopes := []string{
Expand All @@ -692,6 +693,7 @@ func getOAuth2Scopes() []string {
"list.write",
"media.write",
"dm.write",
"broadcast.write",
}

otherScopes := []string{
Expand Down
2 changes: 2 additions & 0 deletions auth/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ func TestGetOAuth2Scopes(t *testing.T) {
// Check for some common scopes
assert.Contains(t, scopes, "tweet.read", "Expected 'tweet.read' scope")
assert.Contains(t, scopes, "users.read", "Expected 'users.read' scope")
assert.Contains(t, scopes, "broadcast.read", "Expected 'broadcast.read' scope")
assert.Contains(t, scopes, "broadcast.write", "Expected 'broadcast.write' scope")
}

func TestCredentialResolutionPriority(t *testing.T) {
Expand Down
Loading