Изменил способ авторизации
This commit is contained in:
parent
e06040b82b
commit
8589fec679
1 changed files with 1 additions and 10 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue