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.

add verification badge

Kiran K1afc953d68b4
diff --git a/apps/web/app/app.dub.co/(auth)/oauth/authorize/page.tsx b/apps/web/app/app.dub.co/(auth)/oauth/authorize/page.tsx
index 6e6add273b..f70995becb 100644
--- a/apps/web/app/app.dub.co/(auth)/oauth/authorize/page.tsx
+++ b/apps/web/app/app.dub.co/(auth)/oauth/authorize/page.tsx
@@ -5,7 +5,7 @@ import { authorizeRequestSchema } from "@/lib/zod/schemas/oauth";
import EmptyState from "@/ui/shared/empty-state";
import { BlurImage, Logo } from "@dub/ui";
import { HOME_DOMAIN, constructMetadata } from "@dub/utils";
-import { ArrowLeftRight } from "lucide-react";
+import { ArrowLeftRight, TriangleAlert } from "lucide-react";
import { redirect } from "next/navigation";
import { Suspense } from "react";
import { AuthorizeForm } from "./authorize-form";
@@ -43,7 +43,7 @@ export default async function Authorize({
return (
<div className="relative z-10 m-auto w-full max-w-md border-y border-gray-200 sm:rounded-2xl sm:border sm:shadow-xl">
- <div className="flex flex-col items-center justify-center space-y-6 border-b border-gray-200 bg-white px-4 py-6 pt-8 text-center sm:rounded-t-2xl sm:px-16">
+ <div className="flex flex-col items-center justify-center space-y-5 border-b border-gray-200 bg-white px-4 py-6 pt-8 text-center sm:rounded-t-2xl sm:px-16">
<div className="flex items-center gap-3">
<a href={integration.website} target="_blank" rel="noreferrer">
{integration.logo ? (
@@ -63,6 +63,14 @@ export default async function Authorize({
<Logo className="size-12" />
</a>
</div>
+
+ {!integration.verified && (
+ <div className="flex items-center gap-2 rounded-md bg-yellow-50 p-2 text-sm text-yellow-700">
+ <TriangleAlert className="size-4" />
+ <span>Dub hasn't verified this app</span>
+ </div>
+ )}
+
<p className="text-md">
<span className="font-bold">{integration.name}</span> is requesting
API access to a workspace on Dub.
diff --git a/apps/web/lib/api/oauth/actions.ts b/apps/web/lib/api/oauth/actions.ts
index b8f78c2d7e..f4cd988c8d 100644
--- a/apps/web/lib/api/oauth/actions.ts
+++ b/apps/web/lib/api/oauth/actions.ts
@@ -29,6 +29,7 @@ export const vaidateAuthorizeRequest = async (params: any) => {
developer: true,
website: true,
logo: true,
+ verified: true
},
},
},