Skip to content
Migrating from NextAuth.js v4? Read our migration guide.
Getting Started
Providers
Spotify

Spotify Provider

Resources

Setup

Callback URL

https://example.com/api/auth/callback/spotify

Environment Variables

AUTH_SPOTIFY_ID
AUTH_SPOTIFY_SECRET

Configuration

/auth.ts
import NextAuth from "next-auth"
import Spotify from "next-auth/providers/spotify"
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [Spotify],
})
Auth.js © Balázs Orbán and Team - 2024