feat: integrate NextAuth for authentication, refactor login and registration processes, and enhance middleware for session management

This commit is contained in:
Julien Froidefond
2025-10-16 15:50:37 +02:00
parent 9ecdd72804
commit 7426bfb33c
33 changed files with 417 additions and 729 deletions

View File

@@ -19,6 +19,7 @@ export const ERROR_MESSAGES: Record<string, string> = {
[ERROR_CODES.AUTH.EMAIL_EXISTS]: "📧 This email is already in use",
[ERROR_CODES.AUTH.INVALID_USER_DATA]: "👤 Invalid user data",
[ERROR_CODES.AUTH.LOGOUT_ERROR]: "🚪 Error during logout",
[ERROR_CODES.AUTH.REGISTRATION_FAILED]: "❌ Registration failed",
// Komga
[ERROR_CODES.KOMGA.MISSING_CONFIG]: "⚙️ Komga configuration not found",