feat(auth): align login and bootstrap with new user schema

This commit is contained in:
2026-06-19 01:05:33 +02:00
parent 2ed9445f7f
commit 01d89cd21b
10 changed files with 503 additions and 60 deletions
+17
View File
@@ -0,0 +1,17 @@
import { describe, expect, it } from "vitest"
import { signInSchema } from "@/schemas/auth.schema"
describe("signInSchema", () => {
it("normalizes login emails before authentication", () => {
const result = signInSchema.safeParse({
email: " Admin@Example.Test ",
password: "secret-password",
})
expect(result.success).toBe(true)
if (result.success) {
expect(result.data.email).toBe("admin@example.test")
}
})
})