refactor module & reset token
This commit is contained in:
2
packages/common/src/models/auth/index.ts
Normal file
2
packages/common/src/models/auth/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from "./credential-auth";
|
||||
export * from "./reset-auth";
|
||||
9
packages/common/src/models/auth/reset-auth.ts
Normal file
9
packages/common/src/models/auth/reset-auth.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import z from "zod";
|
||||
|
||||
export const resetAuthParser = z.object({
|
||||
userId: z.string(),
|
||||
resetToken: z.string(),
|
||||
newPassword: z.string(),
|
||||
});
|
||||
|
||||
export type ResetAuth = z.infer<typeof resetAuthParser>;
|
||||
@@ -1,2 +1,3 @@
|
||||
export * from "./users";
|
||||
export * from "./lang";
|
||||
export * from "./auth";
|
||||
|
||||
Reference in New Issue
Block a user