Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

664 B
Raw Blame
// Auth/landing route-name literals. Inlined (no imports) on purpose: this
// helper lives in the widely-imported `@/utils` barrel, so importing the route
// constants from `@/app/router/handles` here would add that module to the
// barrel's load graph and tip a fragile load-order cycle (app store ↔ @/utils
// ↔ @/types). The values mirror `@/app/router/handles`.
const AUTH_RELATED_ROUTES = [
  "auth.signin",
  "auth.signup",
  "auth.mfa",
  "auth.password.reset",
  "auth.password.forgot",
  "auth.oauth.callback",
  "auth.oidc.callback",
];

export const isAuthRelatedRoute = (routeName: string) => {
  return AUTH_RELATED_ROUTES.includes(routeName);
};