Изменил способ авторизации

This commit is contained in:
urec56 2024-06-03 17:40:11 +05:00
parent e06040b82b
commit 8589fec679

View file

@ -1,7 +1,7 @@
import json
from cryptography.fernet import Fernet
from fastapi import APIRouter, Response, Depends, status
from fastapi import APIRouter, Depends, status
from app.config import settings
from app.exceptions import (
@ -133,15 +133,6 @@ async def login_user(user_data: SUserLogin, uow=Depends(UnitOfWork)):
return {"authorization": f"Bearer {access_token}"}
@router.post(
"/logout",
status_code=status.HTTP_200_OK,
response_model=None,
)
async def logout_user(response: Response):
response.delete_cookie("black_phoenix_access_token")
@router.get(
"/me",
status_code=status.HTTP_200_OK,