initial commit. phase 1 complete

This commit is contained in:
2026-05-05 20:45:19 +02:00
parent d9c68313a0
commit 89e058ffac
20631 changed files with 3224610 additions and 43 deletions
+34
View File
@@ -0,0 +1,34 @@
import { OAuthConfig, OAuthUserConfig } from "."
export interface PinterestProfile extends Record<string, any> {
account_type: "BUSINESS" | "PINNER"
profile_image: string
website_url: string
username: string
}
export default function PinterestProvider<P extends PinterestProfile>(
options: OAuthUserConfig<P>
): OAuthConfig<P> {
return {
id: "pinterest",
name: "Pinterest",
type: "oauth",
authorization: {
url: "https://www.pinterest.com/oauth",
params: { scope: "user_accounts:read" },
},
checks: ["state"],
token: "https://api.pinterest.com/v5/oauth/token",
userinfo: "https://api.pinterest.com/v5/user_account",
profile({ username, profile_image }) {
return {
id: username,
name: username,
image: profile_image,
email: null,
}
},
options,
}
}