diff --git a/src/modules/auth/auth.schema.ts b/src/modules/auth/auth.search.ts similarity index 93% rename from src/modules/auth/auth.schema.ts rename to src/modules/auth/auth.search.ts index 9c46126..b21a9ad 100644 --- a/src/modules/auth/auth.schema.ts +++ b/src/modules/auth/auth.search.ts @@ -1,5 +1,6 @@ import * as z from 'zod/v4'; +/** Search params for `/auth`. */ export const authSearchParamsSchema = z.object({ /** * Path of the protected page the user was trying to access before being redirected to auth. diff --git a/src/routes/auth/layout.tsx b/src/routes/auth/layout.tsx index 5430a60..7589491 100644 --- a/src/routes/auth/layout.tsx +++ b/src/routes/auth/layout.tsx @@ -1,7 +1,7 @@ import { createFileRoute, Outlet } from '@tanstack/react-router'; import { zodValidator } from '@tanstack/zod-adapter'; -import { authSearchParamsSchema } from '~/modules/auth/auth.schema'; +import { authSearchParamsSchema } from '~/modules/auth/auth.search'; import { authGuestGuard } from '~/modules/auth/auth.utils'; export const Route = createFileRoute('/auth')({