Merge branch 'dev'
This commit is contained in:
commit
90b0890263
21 changed files with 636 additions and 93 deletions
|
|
@ -1,3 +1,4 @@
|
|||
export * from "./constants.js";
|
||||
export * from "./schemas/game.js";
|
||||
export * from "./schemas/lobby.js";
|
||||
export * from "./schemas/auth.js";
|
||||
|
|
|
|||
14
packages/shared/src/schemas/auth.ts
Normal file
14
packages/shared/src/schemas/auth.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue