Skip to main content

Setup

1

Get credentials

Go to the Spotify Developer Dashboard and create an app. Under Edit Settings, add your redirect URI:
Copy the Client ID and Client Secret from the app overview.
2

Configure

Environment variables

Scopes

Default scopes: user-read-email, user-read-private To access additional Spotify data, pass extra scopes. They are added on top of the defaults:
The user-read-email scope is required to retrieve the user’s email address. Without it, the provider returns no email, and the oauth() plugin cannot match or create a user for that account (the callback returns JSON instead of a session).

Endpoints

Last modified on October 18, 2026