From 296457ee99279cd855874edb4185f62bf942da83 Mon Sep 17 00:00:00 2001 From: Timofey Date: Thu, 29 May 2025 16:20:13 +0300 Subject: [PATCH] remove unused logs --- backend/api/auth/serializers.py | 1 - frontend/app/api/auth/[...nextauth]/route.ts | 9 --------- 2 files changed, 10 deletions(-) diff --git a/backend/api/auth/serializers.py b/backend/api/auth/serializers.py index 91e2ef8..286b01b 100644 --- a/backend/api/auth/serializers.py +++ b/backend/api/auth/serializers.py @@ -20,7 +20,6 @@ class UserResponseSerializer(serializers.Serializer): try: return str(obj.userprofile.uuid)[:6] except Exception as e: - print(f"Serializer UUID Error: {e}") # лог ошибки return None class ClientRegisterSerializer(serializers.ModelSerializer): diff --git a/frontend/app/api/auth/[...nextauth]/route.ts b/frontend/app/api/auth/[...nextauth]/route.ts index a6ccebb..5592454 100644 --- a/frontend/app/api/auth/[...nextauth]/route.ts +++ b/frontend/app/api/auth/[...nextauth]/route.ts @@ -153,12 +153,8 @@ export const authOptions: NextAuthOptions = { ], callbacks: { async jwt({ token, user, account }) { - // console.log('JWT Callback - User:', user?.userType) - // console.log('JWT Callback - Account:', account?.type) - if (user && account) { if (account.type === 'credentials') { - // console.log('Adding userType to token:', user.userType) return { ...token, accessToken: user.accessToken, @@ -189,15 +185,10 @@ export const authOptions: NextAuthOptions = { return refreshAccessToken(token as GoogleToken) }, async session({ session, token }) { - // console.log('Session Callback - Token:', token) - // console.log('Session Callback - userType:', token.userType) - if (token) { session.user.userType = token.userType as string session.accessToken = token.accessToken as string session.refreshToken = token.refreshToken as string - - // console.log('Session Callback - Final session:', session) } return session },