providers/pinterest
PinterestProfile
拡張
Record
<string
,any
>
プロパティ
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 プロバイダーのカスタマイズを確認してください。
型パラメーター
型パラメーター |
---|
P extends PinterestProfile |
パラメーター
パラメーター | 型 |
---|---|
options | OAuthUserConfig <P > |
戻り値
OAuthConfig
<P
>