From b360b06d34b9a526f074ffe53c51964ed71b9474 Mon Sep 17 00:00:00 2001 From: DmitryGantimurov Date: Sun, 16 Jul 2023 23:25:22 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=BE=D0=B7=D0=B2=D1=80=D0=B0=D1=89?= =?UTF-8?q?=D0=B0=D0=B5=D0=BC=20=D0=BF=D1=80=D0=BE=D1=81=D1=82=D0=BE=20?= =?UTF-8?q?=D1=82=D0=BE=D0=BA=D0=B5=D0=BD,=20=D0=B0=20=D0=BD=D0=B5=20?= =?UTF-8?q?=D0=B4=D0=B6=D0=B8=D1=81=D0=BE=D0=BD=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/main.py b/back/main.py index 801a0d7..2a0eac4 100644 --- a/back/main.py +++ b/back/main.py @@ -165,7 +165,7 @@ async def login_for_access_token( access_token = create_access_token( data={"user_id": user.id}, expires_delta=access_token_expires ) - return {"access_token": access_token} + return access_token @app.get("/api/users/me/", response_model=User)