diff --git a/apps/sim/app/(auth)/oauth/consent/page.tsx b/apps/sim/app/(auth)/oauth/consent/page.tsx index bc851ccff7..ff9986d3c8 100644 --- a/apps/sim/app/(auth)/oauth/consent/page.tsx +++ b/apps/sim/app/(auth)/oauth/consent/page.tsx @@ -46,7 +46,7 @@ export default function OAuthConsentPage() { return } - fetch(`/api/auth/oauth2/client/${clientId}`, { credentials: 'include' }) + fetch(`/api/auth/oauth2/client/${encodeURIComponent(clientId)}`, { credentials: 'include' }) .then(async (res) => { if (!res.ok) return const data = await res.json() @@ -164,13 +164,12 @@ export default function OAuthConsentPage() {