crappy
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from typing import Union, Annotated
|
||||
|
||||
from fastapi import Depends, HTTPException
|
||||
from fastapi.security import OAuth2PasswordBearer, HTTPBearer, HTTPAuthorizationCredentials
|
||||
from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials
|
||||
from jose import jwt, JWTError
|
||||
from sqlalchemy import select
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
@@ -10,8 +10,8 @@ from starlette import status
|
||||
import backend.config
|
||||
from backend.session import get_session
|
||||
from models import User
|
||||
from services.base import BaseService
|
||||
from schemas.auth import *
|
||||
from services.base import BaseService
|
||||
|
||||
oauth2_schema = HTTPBearer()
|
||||
algorithm = 'HS256'
|
||||
|
||||
Reference in New Issue
Block a user