Spaces:
Sleeping
Sleeping
fix: restore missing imports in security.py
Browse files- app/core/security.py +5 -0
app/core/security.py
CHANGED
|
@@ -1,5 +1,10 @@
|
|
| 1 |
import bcrypt
|
| 2 |
import hashlib
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
# Fix for passlib/bcrypt 4.0 compatibility
|
| 5 |
# Passlib 1.7.4 looks for bcrypt.__about__.__version__ which is missing in bcrypt 4.0+
|
|
|
|
| 1 |
import bcrypt
|
| 2 |
import hashlib
|
| 3 |
+
from datetime import datetime, timedelta
|
| 4 |
+
from typing import Optional
|
| 5 |
+
from jose import JWTError, jwt
|
| 6 |
+
from passlib.context import CryptContext
|
| 7 |
+
from app.core.settings import settings
|
| 8 |
|
| 9 |
# Fix for passlib/bcrypt 4.0 compatibility
|
| 10 |
# Passlib 1.7.4 looks for bcrypt.__about__.__version__ which is missing in bcrypt 4.0+
|