Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ async def get_itinerary_data(authorization: str = Header(...)):
|
|
| 59 |
payload = jwt.decode(token, JWT_SECRET_KEY, algorithms=[ALGORITHM])
|
| 60 |
|
| 61 |
# 3. Extract user ID (adjust 'id' to match the key in your JWT payload)
|
| 62 |
-
user_id = payload.get("
|
| 63 |
if user_id is None:
|
| 64 |
raise HTTPException(status_code=401, detail="User ID not found in token payload")
|
| 65 |
|
|
|
|
| 59 |
payload = jwt.decode(token, JWT_SECRET_KEY, algorithms=[ALGORITHM])
|
| 60 |
|
| 61 |
# 3. Extract user ID (adjust 'id' to match the key in your JWT payload)
|
| 62 |
+
user_id = payload.get("user_id")
|
| 63 |
if user_id is None:
|
| 64 |
raise HTTPException(status_code=401, detail="User ID not found in token payload")
|
| 65 |
|