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

providers/pinterest

內建的 Pinterest 整合。

PinterestProfile

繼承自

屬性

account_type

account_type: "BUSINESS" | "PINNER";

profile_image

profile_image: string;

username

username: string;

website_url

website_url: string;

default()

default<P>(options): OAuthConfig<P>

將 Pinterest 登入新增至您的頁面。

設定

回呼 URL

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

組態

import { Auth } from "@auth/core"
import Pinterest from "@auth/core/providers/pinterest"
 
const request = new Request(origin)
const response = await Auth(request, {
  providers: [
    Pinterest({
      clientId: PINTEREST_CLIENT_ID,
      clientSecret: PINTEREST_CLIENT_SECRET,
    }),
  ],
})

資源

注意事項

預設情況下,Auth.js 假設 Pinterest 提供者基於 OAuth 2 規範。

💡

若要在生產環境中使用,請確保應用程式具有標準 API 存取權,而非試用存取權

💡

Pinterest 提供者隨附預設組態。若要覆寫您的使用案例的預設值,請查看自訂內建 OAuth 提供者

免責聲明如果您認為您在預設組態中發現錯誤,您可以開啟一個問題

Auth.js 嚴格遵守規範,且不對提供者偏離規範的任何行為負責。您可以開啟一個問題,但如果問題是不符合規範,我們可能不會尋求解決方案。您可以在討論區中尋求更多協助。

類型參數

類型參數
P extends PinterestProfile

參數

參數類型
optionsOAuthUserConfig<P>

回傳值

OAuthConfig<P>

Auth.js © Balázs Orbán 和團隊 -2024