mirror of
https://github.com/hex248/sprint.git
synced 2026-02-07 18:23:03 +00:00
verification emails and full email setup
This commit is contained in:
@@ -60,12 +60,21 @@ export const AuthResponseSchema = z.object({
|
||||
username: z.string(),
|
||||
avatarURL: z.string().nullable(),
|
||||
iconPreference: z.enum(["lucide", "pixel", "phosphor"]),
|
||||
emailVerified: z.boolean(),
|
||||
}),
|
||||
csrfToken: z.string(),
|
||||
});
|
||||
|
||||
export type AuthResponse = z.infer<typeof AuthResponseSchema>;
|
||||
|
||||
// email verification schemas
|
||||
|
||||
export const VerifyEmailRequestSchema = z.object({
|
||||
code: z.string().length(6, "Verification code must be 6 digits"),
|
||||
});
|
||||
|
||||
export type VerifyEmailRequest = z.infer<typeof VerifyEmailRequestSchema>;
|
||||
|
||||
// issue schemas
|
||||
|
||||
export const IssueCreateRequestSchema = z.object({
|
||||
|
||||
Reference in New Issue
Block a user