Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

449 B
Raw Blame
import { createFileRoute, redirect } from "@tanstack/react-router";

// Redirect legacy /pam/access route to the unified /pam/accounts page
export const Route = createFileRoute("/_authenticate/_inject-org-details/pam/access")({
  beforeLoad: ({ context }: { context: { organizationId: string } }) => {
    throw redirect({
      to: "/organizations/$orgId/pam/accounts",
      params: {
        orgId: context.organizationId
      }
    });
  }
});