YouTube
Social User OAuth

YouTube

Access YouTube channels, videos, and analytics through Google OAuth.

Auth Model

User OAuth

Standard OAuth 2.0 authorization. A user grants consent and receives an access token. Authpipe handles refresh, rotation, and health monitoring automatically.

Connection Flow

1
Your App
2
Authpipe
3
YouTube
@authpipe/node
// Get a valid credential — always fresh, zero latency
const { credential } = await authpipe.getCredential({
  provider: 'youtube',
  tenantId: 'org_acme',
  userId: 'user_123',
});
// Use the credential with the provider API
const response = await fetch('https://api.example.com/data', {
  headers: { Authorization: `Bearer ${credential}` },
});
@authpipe/react
// Drop-in React component
<ConnectButton
  provider="youtube"
  onSuccess={(conn) => console.log('Connected!', conn)}
/>

Available Scopes

Permissions you can request when connecting to YouTube.

https://www.googleapis.com/auth/youtube.readonly

View YouTube account, channel, video, and playlist data

https://www.googleapis.com/auth/youtube.upload

Upload videos to YouTube

https://www.googleapis.com/auth/youtube.force-ssl

View and manage YouTube videos, comments, and captions (SSL required)

https://www.googleapis.com/auth/youtube

Full management of YouTube account (videos, playlists, subscriptions)

https://www.googleapis.com/auth/youtube.channel-memberships.creator

View a list of channel members and their details

https://www.googleapis.com/auth/youtubepartner

View and manage YouTube assets and associated content

https://www.googleapis.com/auth/yt-analytics.readonly

View YouTube Analytics reports for your content

https://www.googleapis.com/auth/yt-analytics-monetary.readonly

View YouTube Analytics monetary reports for your content

What Authpipe handles for YouTube

OAuth Orchestration

PKCE, state validation, callback handling, and provider-specific quirks — all automatic.

Encrypted Vault

AES-256-GCM encryption with per-tenant key isolation. OAuth tokens, API keys, and webhook secrets — never exposed to the frontend.

Silent Refresh

Proactive token refresh before expiry. SDK returns from local cache with zero latency.

Health Monitoring

Scheduled checks detect revoked tokens and expired credentials before users notice.

More Social providers

Ready to connect YouTube?

Get your first 100 connections free. Set up in minutes with our SDK.