diff --git a/auth/routers/authentication.py b/auth/routers/authentication.py index 5838b95..edc0059 100644 --- a/auth/routers/authentication.py +++ b/auth/routers/authentication.py @@ -21,4 +21,4 @@ def login(request: OAuth2PasswordRequestForm = Depends(), db: Session = Depends( detail=f"Incorrect password") access_token = token.create_access_token(data={"sub": user.email}) - return {"access_token": access_token, "token_type": "bearer"} + return {"access_token": access_token, "token_type": "bearer", "login": user.login,"name": user.name, "surname": user.surname}