feat: updated the installation id to coerce string

This commit is contained in:
=
2025-01-06 23:37:16 +05:30
parent 7f67912d2f
commit 7e3a3fcdb0
4 changed files with 5 additions and 5 deletions
@@ -7,7 +7,7 @@ import { GitHubOAuthCallbackPage } from "./GithubOauthCallbackPage";
const GitHubOAuthCallbackPageQueryParamsSchema = z.object({ const GitHubOAuthCallbackPageQueryParamsSchema = z.object({
code: z.string().catch(""), code: z.string().catch(""),
state: z.string().catch(""), state: z.string().catch(""),
installation_id: z.string().catch("") installation_id: z.coerce.string().catch("")
}); });
export const Route = createFileRoute( export const Route = createFileRoute(
@@ -6,7 +6,7 @@ import { GithubOauthCallbackPage } from "./GithubOauthCallbackPage";
export const GithubOAuthCallbackPageQueryParamsSchema = z.object({ export const GithubOAuthCallbackPageQueryParamsSchema = z.object({
state: z.string().catch(""), state: z.string().catch(""),
installation_id: z.string().catch(""), installation_id: z.coerce.string().catch(""),
code: z.string().catch("") code: z.string().catch("")
}); });
+2 -2
View File
@@ -166,7 +166,7 @@ import { Route as secretManagerIntegrationsAwsSecretManagerConfigurePageRouteImp
import { Route as secretManagerIntegrationsAwsSecretManagerAuthorizePageRouteImport } from './pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/route' import { Route as secretManagerIntegrationsAwsSecretManagerAuthorizePageRouteImport } from './pages/secret-manager/integrations/AwsSecretManagerAuthorizePage/route'
import { Route as secretManagerIntegrationsAwsParameterStoreConfigurePageRouteImport } from './pages/secret-manager/integrations/AwsParameterStoreConfigurePage/route' import { Route as secretManagerIntegrationsAwsParameterStoreConfigurePageRouteImport } from './pages/secret-manager/integrations/AwsParameterStoreConfigurePage/route'
import { Route as secretManagerIntegrationsAwsParameterStoreAuthorizePageRouteImport } from './pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/route' import { Route as secretManagerIntegrationsAwsParameterStoreAuthorizePageRouteImport } from './pages/secret-manager/integrations/AwsParameterStoreAuthorizePage/route'
import { Route as organizationAppConnectionsGithubOauthCallbackPageRouteImport } from './pages/organization/AppConnections/GithubOauthCallbackPage/route' import { Route as organizationAppConnectionsGithubOauthCallbackPageRouteImport } from './pages/organization/appConnections/GithubOauthCallbackPage/route'
import { Route as secretManagerIntegrationsVercelOauthCallbackPageRouteImport } from './pages/secret-manager/integrations/VercelOauthCallbackPage/route' import { Route as secretManagerIntegrationsVercelOauthCallbackPageRouteImport } from './pages/secret-manager/integrations/VercelOauthCallbackPage/route'
import { Route as secretManagerIntegrationsNetlifyOauthCallbackPageRouteImport } from './pages/secret-manager/integrations/NetlifyOauthCallbackPage/route' import { Route as secretManagerIntegrationsNetlifyOauthCallbackPageRouteImport } from './pages/secret-manager/integrations/NetlifyOauthCallbackPage/route'
import { Route as secretManagerIntegrationsHerokuOauthCallbackPageRouteImport } from './pages/secret-manager/integrations/HerokuOauthCallbackPage/route' import { Route as secretManagerIntegrationsHerokuOauthCallbackPageRouteImport } from './pages/secret-manager/integrations/HerokuOauthCallbackPage/route'
@@ -5074,7 +5074,7 @@ export const routeTree = rootRoute
"parent": "/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout" "parent": "/_authenticate/_inject-org-details/ssh/$projectId/_ssh-layout"
}, },
"/_authenticate/_inject-org-details/organization/_layout/app-connections/github/oauth/callback": { "/_authenticate/_inject-org-details/organization/_layout/app-connections/github/oauth/callback": {
"filePath": "organization/AppConnections/GithubOauthCallbackPage/route.tsx", "filePath": "organization/appConnections/GithubOauthCallbackPage/route.tsx",
"parent": "/_authenticate/_inject-org-details/organization/_layout" "parent": "/_authenticate/_inject-org-details/organization/_layout"
}, },
"/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-parameter-store/authorize": { "/_authenticate/_inject-org-details/secret-manager/$projectId/_secret-manager-layout/integrations/aws-parameter-store/authorize": {
+1 -1
View File
@@ -27,7 +27,7 @@ const organizationRoutes = route("/organization", [
route("/identities/$identityId", "organization/IdentityDetailsByIDPage/route.tsx"), route("/identities/$identityId", "organization/IdentityDetailsByIDPage/route.tsx"),
route( route(
"/app-connections/github/oauth/callback", "/app-connections/github/oauth/callback",
"organization/AppConnections/GithubOauthCallbackPage/route.tsx" "organization/appConnections/GithubOauthCallbackPage/route.tsx"
) )
]) ])
]); ]);