Update auth.py
Browse files
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")
|