Skip to content

Commit 4914480

Browse files
committed
fix: resolve build failures in PR #236
- Add missing Zod import in lib/auth.ts - Fix Zod error handling to use 'issues' property instead of 'errors' The build was failing due to missing import and incorrect Zod API usage. Build now passes locally.
1 parent 317f846 commit 4914480

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/auth.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { prisma } from "@/lib/prisma"
44
import { createLogger } from "@/lib/utils/logger"
55
import { NextAuthOptions } from "next-auth"
66
import CredentialsProvider from "next-auth/providers/credentials"
7+
import { z } from "zod"
78

89
const logger = createLogger("AUTH")
910

lib/jellyfin-auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export async function authenticateJellyfin(
5757
// Validate credentials
5858
const validation = JellyfinCredentialsSchema.safeParse({ username, password })
5959
if (!validation.success) {
60-
const errors = validation.error.errors.map(e => e.message).join(", ")
60+
const errors = validation.error.issues.map(e => e.message).join(", ")
6161
logger.warn("Invalid Jellyfin credentials format", { errors })
6262
return {
6363
success: false,

0 commit comments

Comments
 (0)