- Add AuthModal with login/register tabs and social buttons - Add forgot-password and reset-password routes - Add Sonner toaster to root layout - Add auth search schemas to @lila/shared - Add ESLint overrides for TanStack Router generics
14 lines
422 B
TypeScript
14 lines
422 B
TypeScript
import * as z from "zod";
|
|
|
|
export const ResetPasswordSearchSchema = z.object({
|
|
token: z.string().catch(""),
|
|
});
|
|
|
|
export type ResetPasswordSearch = z.infer<typeof ResetPasswordSearchSchema>;
|
|
|
|
export const AuthModalSearchSchema = z.object({
|
|
modal: z.enum(["auth"]).optional().catch(undefined),
|
|
redirect: z.string().optional().catch(undefined),
|
|
});
|
|
|
|
export type AuthModalSearch = z.infer<typeof AuthModalSearchSchema>;
|