跳至内容
从 NextAuth.js v4 迁移?阅读 我们的迁移指南.

Spotify 提供商

资源

设置

回调 URL

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

环境变量

AUTH_SPOTIFY_ID
AUTH_SPOTIFY_SECRET

配置

/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 和团队 -2024