Gregniuki commited on
Commit
fe23756
1 Parent(s): 7c9ef15

Update auth.py

Browse files
Files changed (1) hide show
  1. auth.py +1 -0
auth.py CHANGED
@@ -13,6 +13,7 @@ from datetime import datetime, timedelta
13
  router = APIRouter()
14
  app = FastAPI()
15
  templates = Jinja2Templates(directory="templates")
 
16
  class AuthViews:
17
  def __init__(self):
18
  self.pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
 
13
  router = APIRouter()
14
  app = FastAPI()
15
  templates = Jinja2Templates(directory="templates")
16
+ oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
17
  class AuthViews:
18
  def __init__(self):
19
  self.pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")