跳至内容
从 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 和团队 -2024