From a8d6cebb101bc588895171e30eea077a0af53b20 Mon Sep 17 00:00:00 2001 From: Cizz22 Date: Tue, 14 Oct 2025 04:56:20 +0700 Subject: [PATCH] fix --- src/auth/service.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/auth/service.py b/src/auth/service.py index dfb9229..dcd97d4 100644 --- a/src/auth/service.py +++ b/src/auth/service.py @@ -1,5 +1,6 @@ # app/auth/auth_bearer.py +import json from typing import Annotated, Optional import requests @@ -89,15 +90,18 @@ async def internal_key(request: Request): ) try: + + payload = json.dumps({ + "username": "user10", + "password": "123456" + }) response = requests.post( f"{config.AUTH_SERVICE_API}/sign-in", - data={ - "username": "user10", - "password": "123456" - } + data=payload ) if not response.ok: + print(str(response.json()) raise Exception("error auth") user_data = response.json()