Add new token

This commit is contained in:
Fang-Pen Lin
2025-11-07 16:50:12 -08:00
parent a641e82b29
commit 3b5046eadd

View File

@@ -43,6 +43,15 @@ def bootstrap_infisical(context: Context):
body = resp.json()
org = body["organization"]
user = body["user"]
temp_token = body["token"]
resp = client.post(
"/api/v1/auth/token",
headers={"Authorization": f"Bearer {temp_token}"},
json={},
)
resp.raise_for_status()
body = resp.json()
auth_token = body["token"]
headers = dict(authorization=f"Bearer {auth_token}")