Spotify Provider
Resources
Setup
Callback URL
https://example.com/api/auth/callback/spotifyEnvironment Variables
AUTH_SPOTIFY_ID
AUTH_SPOTIFY_SECRETConfiguration
/auth.ts
import NextAuth from "next-auth"
import Spotify from "next-auth/providers/spotify"
export const { handlers, auth, signIn, signOut } = NextAuth({
providers: [Spotify],
})