update auth.py; bug fix
Browse files
backend/app/api/endpoints/auth.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
# File: backend/app/api/endpoints/auth.py (Corrected)
|
| 3 |
#
|
| 4 |
from fastapi import APIRouter, Depends, HTTPException, status
|
| 5 |
-
|
| 6 |
from fastapi.security import OAuth2PasswordBearer # Add this import
|
| 7 |
from sqlalchemy.ext.asyncio import AsyncSession
|
| 8 |
from jose import jwt, JWTError
|
|
|
|
| 2 |
# File: backend/app/api/endpoints/auth.py (Corrected)
|
| 3 |
#
|
| 4 |
from fastapi import APIRouter, Depends, HTTPException, status
|
| 5 |
+
from fastapi.security import OAuth2PasswordRequestForm
|
| 6 |
from fastapi.security import OAuth2PasswordBearer # Add this import
|
| 7 |
from sqlalchemy.ext.asyncio import AsyncSession
|
| 8 |
from jose import jwt, JWTError
|