Spaces:
Sleeping
Sleeping
pililover
commited on
Commit
·
ea9cb4b
1
Parent(s):
86eaec7
yolo
Browse files- src/auth.py +2 -1
src/auth.py
CHANGED
|
@@ -17,7 +17,8 @@ load_dotenv()
|
|
| 17 |
|
| 18 |
firebase_admin_json = os.getenv("FIREBASE_ADMIN_JSON")
|
| 19 |
if firebase_admin_json:
|
| 20 |
-
|
|
|
|
| 21 |
with open(service_account_path, "w") as f:
|
| 22 |
f.write(firebase_admin_json)
|
| 23 |
cred_path = service_account_path
|
|
|
|
| 17 |
|
| 18 |
firebase_admin_json = os.getenv("FIREBASE_ADMIN_JSON")
|
| 19 |
if firebase_admin_json:
|
| 20 |
+
import tempfile
|
| 21 |
+
service_account_path = os.path.join(tempfile.gettempdir(), "serviceAccountKey.json")
|
| 22 |
with open(service_account_path, "w") as f:
|
| 23 |
f.write(firebase_admin_json)
|
| 24 |
cred_path = service_account_path
|