@authxyz/local
Version:
A robust authentication library for express.js
46 lines (45 loc) • 1 kB
TypeScript
import { z } from "zod";
export declare const registerSchema: z.ZodObject<{
email: z.ZodString;
password: z.ZodString;
}, "strip", z.ZodTypeAny, {
email?: string;
password?: string;
}, {
email?: string;
password?: string;
}>;
export declare const forgotPasswordSchema: z.ZodObject<{
email: z.ZodString;
}, "strip", z.ZodTypeAny, {
email?: string;
}, {
email?: string;
}>;
export declare const resetPasswordSchema: z.ZodObject<{
email: z.ZodString;
password: z.ZodString;
code: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
email?: string;
password?: string;
code?: number;
}, {
email?: string;
password?: string;
code?: number;
}>;
export declare const verifyPassword: z.ZodObject<{
code: z.ZodString;
}, "strip", z.ZodTypeAny, {
code?: string;
}, {
code?: string;
}>;
export declare const verificationSchema: z.ZodObject<{
code: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
code?: number;
}, {
code?: number;
}>;