diff --git a/auth/auth.go b/auth/auth.go index f022091..d589219 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -679,6 +679,7 @@ func getOAuth2Scopes() []string { "like.read", "users.email", "dm.read", + "broadcast.read", } writeScopes := []string{ @@ -692,6 +693,7 @@ func getOAuth2Scopes() []string { "list.write", "media.write", "dm.write", + "broadcast.write", } otherScopes := []string{ diff --git a/auth/auth_test.go b/auth/auth_test.go index a244e4d..ef1aedf 100644 --- a/auth/auth_test.go +++ b/auth/auth_test.go @@ -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) {