e2b@2.40.0
·
121 commits
to main
since this release
Minor Changes
-
6248b12: Remove the deprecated
accessToken/access_tokenoption and itsE2B_ACCESS_TOKENenvironment fallback. E2B access tokens are no longer accepted for API authentication, so the SDKs no longer resolve one or send it as anAuthorization: Bearerheader — requests authenticate with the API key alone.If you were relying on the option to send a bearer token to a custom deployment, pass the header directly, which is what the deprecation notice already pointed to:
// Before const sandbox = await Sandbox.create({ accessToken: token }) // After const sandbox = await Sandbox.create({ apiHeaders: { Authorization: `Bearer ${token}` }, })
# Before config = ConnectionConfig(access_token=token) # After config = ConnectionConfig(api_headers={"Authorization": f"Bearer {token}"})
Note that
Sandbox.envd_access_token/traffic_access_tokenare unrelated per-sandbox tokens and are unaffected.