diff --git a/frontend/src/pages/organization/AppConnections/GithubOauthCallbackPage/route.tsx b/frontend/src/pages/organization/AppConnections/GithubOauthCallbackPage/route.tsx index 22c314765..889c30082 100644 --- a/frontend/src/pages/organization/AppConnections/GithubOauthCallbackPage/route.tsx +++ b/frontend/src/pages/organization/AppConnections/GithubOauthCallbackPage/route.tsx @@ -7,7 +7,7 @@ import { GitHubOAuthCallbackPage } from "./GithubOauthCallbackPage"; const GitHubOAuthCallbackPageQueryParamsSchema = z.object({ code: z.coerce.string().catch(""), state: z.string().catch(""), - installation_id: z.coerce.string().catch("") + installation_id: z.coerce.string().optional().catch("") }); export const Route = createFileRoute( diff --git a/frontend/src/pages/secret-manager/integrations/GithubOauthCallbackPage/route.tsx b/frontend/src/pages/secret-manager/integrations/GithubOauthCallbackPage/route.tsx index 24b97d16e..fd08440a6 100644 --- a/frontend/src/pages/secret-manager/integrations/GithubOauthCallbackPage/route.tsx +++ b/frontend/src/pages/secret-manager/integrations/GithubOauthCallbackPage/route.tsx @@ -6,7 +6,7 @@ import { GithubOauthCallbackPage } from "./GithubOauthCallbackPage"; export const GithubOAuthCallbackPageQueryParamsSchema = z.object({ state: z.string().catch(""), - installation_id: z.coerce.string().catch(""), + installation_id: z.coerce.string().optional().catch(""), code: z.coerce.string().catch("") });