Skip to content

Let's use AI to Earn!

feat: youtube analyse auth (#402)

bingyunsky5f5969d09ed3
diff --git a/project/backend/apps/aitoearn-channel/src/core/platforms/youtube/youtube.service.ts b/project/backend/apps/aitoearn-channel/src/core/platforms/youtube/youtube.service.ts
index 761464ba..f5be6fd2 100644
--- a/project/backend/apps/aitoearn-channel/src/core/platforms/youtube/youtube.service.ts
+++ b/project/backend/apps/aitoearn-channel/src/core/platforms/youtube/youtube.service.ts
@@ -498,6 +498,7 @@ export class YoutubeService extends PlatformBaseService {
'https://www.googleapis.com/auth/youtube.readonly',
'https://www.googleapis.com/auth/youtube.upload',
'https://www.googleapis.com/auth/userinfo.profile',
+ 'https://www.googleapis.com/auth/yt-analytics.readonly',
]
const stateData = {