Spaces:
Sleeping
Sleeping
auth
Browse files
app.py
CHANGED
|
@@ -230,7 +230,10 @@ async def verify_firebase_token(firebase_id_token: str) -> dict:
|
|
| 230 |
if not firebase_id_token:
|
| 231 |
raise HTTPException(status_code=401, detail=ERRORS["TOKEN_MISSING"])
|
| 232 |
if not FIREBASE_API_KEY:
|
| 233 |
-
raise HTTPException(
|
|
|
|
|
|
|
|
|
|
| 234 |
|
| 235 |
url = f"https://identitytoolkit.googleapis.com/v1/accounts:lookup?key={FIREBASE_API_KEY}"
|
| 236 |
payload = {"idToken": firebase_id_token}
|
|
|
|
| 230 |
if not firebase_id_token:
|
| 231 |
raise HTTPException(status_code=401, detail=ERRORS["TOKEN_MISSING"])
|
| 232 |
if not FIREBASE_API_KEY:
|
| 233 |
+
raise HTTPException(
|
| 234 |
+
status_code=500,
|
| 235 |
+
detail="FIREBASE_API_KEY is missing in environment configuration",
|
| 236 |
+
)
|
| 237 |
|
| 238 |
url = f"https://identitytoolkit.googleapis.com/v1/accounts:lookup?key={FIREBASE_API_KEY}"
|
| 239 |
payload = {"idToken": firebase_id_token}
|