From aafdfb8a59398c67e21e896f35bef808e6c0dc84 Mon Sep 17 00:00:00 2001 From: Sergey Korotonozhko <_serezhka_@mail.ru> Date: Tue, 19 May 2026 18:48:35 +0300 Subject: [PATCH] fix: use timedelta for jwt expiry calculation (datetime + int TypeError) --- app/services/auth_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/auth_service.py b/app/services/auth_service.py index 7d78be9..af9cfc8 100644 --- a/app/services/auth_service.py +++ b/app/services/auth_service.py @@ -184,5 +184,5 @@ class AuthService: "access_token": create_access_token({"sub": user_id}), "refresh_token": create_refresh_token({"sub": user_id}), "token_type": "bearer", - "expires_at": now + settings.jwt_access_token_expire_minutes * 60, + "expires_at": now + timedelta(minutes=settings.jwt_access_token_expire_minutes), }