#2168·postiz-app

YouTube provider requests unused youtubepartner scope, blocks clean OAuth verification

Author: grimboy-ukCreated Sep 28, 2026Updated Sep 29, 2026

Description

YoutubeProvider.scopes requests https://www.googleapis.com/auth/youtubepartner:

https://github.com/gitroomhq/postiz-app/blob/main/libraries/nestjs-libraries/src/integrations/social/youtube.provider.ts#L70

I searched the whole repo and this scope is never used in any API call — only channels.list, videos.list, the resumable upload flow, and youtubeAnalytics.reports.query are actually called, which map to youtube, youtube.readonly, youtube.upload, youtube.force-ssl and yt-analytics.readonly.

youtubepartner grants access to YouTube Content ID / partner assets, which Postiz doesn't touch anywhere.

Impact

This matters beyond tidiness: Google's OAuth verification process (required once an app requests sensitive/restricted scopes) asks for a written justification per requested scope, and reviewers commonly reject apps that request scopes with no corresponding functionality. Every self-hosted Postiz instance going through YouTube verification has to either invent a justification for a scope the app doesn't use, or fail verification.

Suggested fix

Drop https://www.googleapis.com/auth/youtubepartner from the scopes array unless there's a planned Content ID/partner feature it's reserved for — if so, worth a comment in the code noting why it's there.

Environment

Self-hosted, v2.11.3.