Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

hide insta for now, update env var names

Steven Teyb7568d7a4bd5
diff --git a/apps/web/lib/actions/partners/online-presence-providers.ts b/apps/web/lib/actions/partners/online-presence-providers.ts
index 698f64c20e..ee098d0e4b 100644
--- a/apps/web/lib/actions/partners/online-presence-providers.ts
+++ b/apps/web/lib/actions/partners/online-presence-providers.ts
@@ -21,7 +21,7 @@ export const ONLINE_PRESENCE_PROVIDERS: Record<string, OnlinePresenceProvider> =
verifiedColumn: "youtubeVerifiedAt",
authUrl: "https://accounts.google.com/o/oauth2/v2/auth",
tokenUrl: "https://oauth2.googleapis.com/token",
- clientId: process.env.NEXT_PUBLIC_YOUTUBE_CLIENT_ID ?? null,
+ clientId: process.env.YOUTUBE_CLIENT_ID ?? null,
clientSecret: process.env.YOUTUBE_CLIENT_SECRET ?? null,
scopes: "https://www.googleapis.com/auth/youtube.readonly",
verify: async ({ partner, accessToken }) => {
@@ -44,8 +44,8 @@ export const ONLINE_PRESENCE_PROVIDERS: Record<string, OnlinePresenceProvider> =
verifiedColumn: "twitterVerifiedAt",
authUrl: "https://x.com/i/oauth2/authorize",
tokenUrl: "https://api.x.com/2/oauth2/token",
- clientId: process.env.NEXT_PUBLIC_X_CLIENT_ID ?? null,
- clientSecret: process.env.X_CLIENT_SECRET ?? null,
+ clientId: process.env.TWITTER_CLIENT_ID ?? null,
+ clientSecret: process.env.TWITTER_CLIENT_SECRET ?? null,
pkce: true,
scopes: "users.read tweet.read",
verify: async ({ partner, accessToken }) => {
@@ -69,7 +69,7 @@ export const ONLINE_PRESENCE_PROVIDERS: Record<string, OnlinePresenceProvider> =
verifiedColumn: "tiktokVerifiedAt",
authUrl: "https://www.tiktok.com/v2/auth/authorize",
tokenUrl: "https://open.tiktokapis.com/v2/oauth/token/",
- clientId: process.env.NEXT_PUBLIC_TIKTOK_CLIENT_ID ?? null,
+ clientId: process.env.TIKTOK_CLIENT_ID ?? null,
clientSecret: process.env.TIKTOK_CLIENT_SECRET ?? null,
clientIdParam: "client_key",
scopes: "user.info.basic,user.info.profile",
diff --git a/apps/web/ui/partners/online-presence-form.tsx b/apps/web/ui/partners/online-presence-form.tsx
index ff52bb3269..dcf83cdc71 100644
--- a/apps/web/ui/partners/online-presence-form.tsx
+++ b/apps/web/ui/partners/online-presence-form.tsx
@@ -8,7 +8,6 @@ import {
CircleCheckFill,
Globe,
Icon,
- Instagram,
TikTok,
Twitter,
YouTube,
@@ -49,8 +48,6 @@ export function OnlinePresenceForm({
partner,
onSubmitSuccessful,
}: OnlinePresenceFormProps) {
- const { partner: partnerProfile } = usePartnerProfile();
-
const form = useForm<OnlinePresenceFormData>({
defaultValues: {
website: partner?.website || undefined,
@@ -172,7 +169,8 @@ export function OnlinePresenceForm({
}
/>
- <FormRow
+ {/* TODO: Add Instagram verification */}
+ {/* <FormRow
variant={variant}
label="Instagram"
input={
@@ -204,7 +202,7 @@ export function OnlinePresenceForm({
}
/>
}
- />
+ /> */}
<FormRow
variant={variant}