next-auth
Version:
Authentication for Next.js
22 lines (21 loc) • 608 B
JavaScript
/** @type {import(".").OAuthProvider} */
export default function Mailchimp(options) {
return {
id: "mailchimp",
name: "Mailchimp",
type: "oauth",
authorization: "https://login.mailchimp.com/oauth2/authorize",
token: "https://login.mailchimp.com/oauth2/token",
userinfo: "https://login.mailchimp.com/oauth2/metadata",
profile(profile) {
return {
id: profile.login.login_id,
name: profile.accountname,
email: profile.login.email,
image: null,
}
},
style: { logo: "/mailchimp.svg", bg: "#000", text: "#fff" },
options,
}
}