Spotify
Social User OAuth

Spotify

Access playlists, playback, and music data through Spotify.

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
Spotify
@authpipe/node
// Get a valid credential — always fresh, zero latency
const { credential } = await authpipe.getCredential({
  provider: 'spotify',
  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="spotify"
  onSuccess={(conn) => console.log('Connected!', conn)}
/>

Available Scopes

Permissions you can request when connecting to Spotify.

user-read-private

Read private user profile

user-read-email

Read user email

playlist-read-private

Read private playlists

playlist-modify-public

Modify public playlists

playlist-modify-private

Modify private playlists

user-library-read

Read user library

user-library-modify

Modify user library

user-read-playback-state

Read playback state

user-modify-playback-state

Control playback

streaming

Stream content

What Authpipe handles for Spotify

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 Spotify?

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