diff --git a/apps/web/pages/auth/oauth2/authorize.tsx b/apps/web/pages/auth/oauth2/authorize.tsx index 18b9fa1404..c739495846 100644 --- a/apps/web/pages/auth/oauth2/authorize.tsx +++ b/apps/web/pages/auth/oauth2/authorize.tsx @@ -18,7 +18,7 @@ export default function Authorize() { const router = useRouter(); const searchParams = useCompatSearchParams(); - const client_id = searchParams?.get("client_id") as string; + const client_id = (searchParams?.get("client_id") as string) || ""; const state = searchParams?.get("state") as string; const scope = searchParams?.get("scope") as string;