Neah_Front/node_modules/next-auth/providers/pipedrive.js
2025-04-08 14:45:23 +02:00

28 lines
624 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = Pipedrive;
function Pipedrive(options) {
return {
id: "pipedrive",
name: "Pipedrive",
type: "oauth",
version: "2.0",
authorization: "https://oauth.pipedrive.com/oauth/authorize",
token: "https://oauth.pipedrive.com/oauth/token",
userinfo: "https://api.pipedrive.com/users/me",
profile: ({
data: profile
}) => {
return {
id: String(profile.id),
name: profile.name,
email: profile.email,
image: profile.icon_url
};
},
options
};
}