Skip to content

BeechCMS


BeechCMS / @beechcms/core / loginRequestSchema

Variable: loginRequestSchema ​

const loginRequestSchema: ZodObject<{ email: ZodString; password: ZodString; }, $strip>

Body of POST /auth/login. The single source of both the runtime check and the type the typed client sends: the output email is already trimmed and lowercased, the form it is stored in.