跳至內容
從 NextAuth.js v4 遷移?請閱讀 我們的遷移指南.

Pinterest 供應商

資源

設定

回呼網址

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

環境變數

AUTH_PINTEREST_ID
AUTH_PINTEREST_SECRET

組態

/auth.ts
import NextAuth from "next-auth"
import Pinterest from "next-auth/providers/pinterest"
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [Pinterest],
})

注意事項

  • 若要在生產環境中使用,請確保應用程式具有標準 API 存取權,而非試用存取權
Auth.js © Balázs Orbán 與團隊 -2024