コンテンツへスキップ
NextAuth.js v4からの移行?こちらを ご確認ください。.

providers/pipedrive

組み込みのPipedrive統合。

PipedriveProfile

拡張

プロパティ

data

data: {
  activated: boolean;
  active_flag: boolean;
  company_country: string;
  company_domain: string;
  company_id: number;
  company_industry: string;
  company_name: string;
  created: Date;
  default_currency: string;
  email: string;
  has_created_company: boolean;
  icon_url: string;
  id: number;
  is_admin: number;
  is_you: boolean;
  lang: number;
  language: {
     country_code: string;
     language_code: string;
  };
  last_login: Date;
  locale: string;
  modified: Date;
  name: string;
  phone: string;
  role_id: number;
  signup_flow_variation: string;
  timezone_name: string;
  timezone_offset: string;
};
activated?
optional activated: boolean;
active_flag?
optional active_flag: boolean;
company_country?
optional company_country: string;
company_domain?
optional company_domain: string;
company_id?
optional company_id: number;
company_industry?
optional company_industry: string;
company_name?
optional company_name: string;
created?
optional created: Date;
default_currency?
optional default_currency: string;
email
email: string;
has_created_company?
optional has_created_company: boolean;
icon_url?
optional icon_url: string;
id
id: number;
is_admin?
optional is_admin: number;
is_you?
optional is_you: boolean;
lang?
optional lang: number;
language?
optional language: {
  country_code: string;
  language_code: string;
};
language.country_code?
optional country_code: string;
language.language_code?
optional language_code: string;
last_login?
optional last_login: Date;
locale?
optional locale: string;
modified?
optional modified: Date;
name
name: string;
phone?
optional phone: string;
role_id?
optional role_id: number;
signup_flow_variation?
optional signup_flow_variation: string;
timezone_name?
optional timezone_name: string;
timezone_offset?
optional timezone_offset: string;

success

success: boolean;

default()

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

Pipedriveログインをページに追加します。

設定

コールバックURL

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

設定

import { Auth } from "@auth/core"
import Pipedrive from "@auth/core/providers/pipedrive"
 
const request = new Request(origin)
const response = await Auth(request, {
  providers: [
    Pipedrive({
      clientId: PIPEDRIVE_CLIENT_ID,
      clientSecret: PIPEDRIVE_CLIENT_SECRET,
    }),
  ],
})

リソース

備考

デフォルトでは、Auth.jsはPipedriveプロバイダーがOAuth 2仕様に基づいていると想定しています。

💡

Pipedriveプロバイダーにはデフォルトの設定が用意されています。ユースケースに合わせてデフォルトの設定をオーバーライドするには、組み込みOAuthプロバイダーのカスタマイズを参照してください。

免責事項 デフォルト設定のバグを発見したと思われる場合は、問題を報告してください。

Auth.jsは仕様に厳密に従っており、プロバイダによる仕様からのずれについては責任を負いかねます。問題を報告することはできますが、問題が仕様への非準拠である場合、解決に取り組めない可能性があります。Discussionsでさらにヘルプを求めることができます。

型パラメータ

型パラメータ
P extends PipedriveProfile

パラメータ

パラメータ
optionsOAuthUserConfig<P>

戻り値

OAuthConfig<P>

Auth.js © Balázs Orbán and Team -2024