e2b@2.30.3
Patch Changes
-
f3e7f33: Tidy up SDK authentication and deprecate the access token in
ConnectionConfig.- Deprecated the
accessToken(JS) /access_token(Python) option onConnectionConfig. It still works exactly as before — when set (or viaE2B_ACCESS_TOKEN), theAuthorization: Bearerheader is still sent — but you should pass custom auth throughapiHeadersinstead, e.g.new ConnectionConfig({ apiHeaders: { Authorization: 'Bearer <token>' } }). - The SDK now raises a clear error when no API key is supplied, pointing to the API Keys tab (
https://e2b.dev/dashboard?tab=keys). In JS this is controlled by arequireApiKeyoption (defaulttrue) so callers that authenticate differently — like the CLI hitting/teamswith an access token — can opt out; in Python the API key is always required. - Removed the unused access-token toggle from the API clients:
requireAccessToken(JS) andrequire_access_token(Python). No caller ever set it to a non-default value, so behavior is unchanged. - The CLI now passes the access token to the
/teamsendpoint throughapiHeadersinstead of the deprecated option. - Decoupled the sandbox-scoped envd access token from
ConnectionConfig:EnvdApiClientnow owns its ownaccessTokenfield and sets theX-Access-Tokenheader itself.
- Deprecated the
-
0a5d524: Update package logos with theme-aware dark/light variants for GitHub.