The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
refactor: Update OAuth client scopes in authorize form and page components
Kiran K14eef2c52d36
diff --git a/apps/web/app/app.dub.co/(auth)/oauth/authorize/authorize-form.tsx b/apps/web/app/app.dub.co/(auth)/oauth/authorize/authorize-form.tsxindex 03232e2943..631c06b5ad 100644--- a/apps/web/app/app.dub.co/(auth)/oauth/authorize/authorize-form.tsx+++ b/apps/web/app/app.dub.co/(auth)/oauth/authorize/authorize-form.tsx@@ -90,7 +90,7 @@ export const AuthorizeForm = (props: AuthorizeFormProps) => {disabled={submitting}/><Button- text={`Authorize ${oAuthApp.name}`}+ text="Authorize"type="submit"loading={submitting}disabled={!selectedWorkspace}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.tsxindex ff97e237eb..b5fcebb91c 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@@ -54,16 +54,20 @@ export default async function Authorize({</a></div><p className="text-md">+ <span className="font-bold">{oAuthApp.name}</span> is requesting API+ access to a workspace on Dub.+ </p>+ <span className="text-xs text-gray-500">+ Built by{" "}<a- className="font-bold text-blue-500"href={oAuthApp.website}target="_blank"rel="noreferrer"+ className="underline">- {oAuthApp.name}- </a>{" "}- is requesting API access to a workspace.- </p>+ {oAuthApp.developer}+ </a>+ </span></div><div className="flex flex-col space-y-3 bg-white px-2 py-6 sm:px-10"><ScopesRequested scopesRequested={oAuthApp.scopes.split(" ")} />