Spaces:
Sleeping
Sleeping
Update auth.py
Browse files
auth.py
CHANGED
|
@@ -30,7 +30,9 @@ ALGORITHM = "HS256"
|
|
| 30 |
JWT_EXPIRATION_DELTA = timedelta(days=1) # Token valid for 1 day
|
| 31 |
# Database path from environment variable or default
|
| 32 |
# Fix the incorrect DB_PATH
|
| 33 |
-
DB_PATH = os.
|
|
|
|
|
|
|
| 34 |
# FastAPI OAuth2 scheme
|
| 35 |
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
|
| 36 |
|
|
|
|
| 30 |
JWT_EXPIRATION_DELTA = timedelta(days=1) # Token valid for 1 day
|
| 31 |
# Database path from environment variable or default
|
| 32 |
# Fix the incorrect DB_PATH
|
| 33 |
+
DB_PATH = os.path.abspath("/tmp/user_data.db")
|
| 34 |
+
|
| 35 |
+
|
| 36 |
# FastAPI OAuth2 scheme
|
| 37 |
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
|
| 38 |
|