2026-10-21 — Secret API keys start with sk_; the partner SDK loads in plain Node
Security — secret API keys start with sk_ (#7583)
-
A secret partner API key is now issued as
sk_test_*(sandbox) orsk_live_*(production). A publishable key keepspk_test_*/pk_live_*. The prefix shows which class of key you hold, so a secret key pasted into a browser bundle or a public repository is visibly a leak, and a secret scanner can flag it (#7583 ).A secret key created before this release keeps its
pk_*prefix and keeps working unchanged. When you rotate it in the dashboard, the replacement is issued assk_*. Code that checks a key’s prefix must acceptsk_as well aspk_.To flag a committed secret key, add the custom pattern
sk_(live|test)_[0-9a-f]{64}to GitHub secret scanning. See Authentication.
Fixed — partner SDK loads in plain Node and defaults to the production API
-
@akin-travel/partner-sdk/serverloads outside a bundler. A partner backend on Express, Fastify or a plain Node script crashed atrequire('@akin-travel/partner-sdk/server')(orimport) withERR_UNSUPPORTED_DIR_IMPORT.@akin-travel/sdk-corenow ships a Node build that loads in Node ESM and CJS. The server entry takes its four documents from the new@akin-travel/sdk-core/server-operationssubpath, which imports onlygraphql, so the server entry no longer loads Apollo at all (#7581 ). -
resolveConfig({ partnerId, apiKey })no longer throws. With no environment variables set, the SDK resolved the API URL to an empty string and core refused it. The URL now comes fromenvironment:https://api.akintravel.com/graphqlforproduction(the default),https://staging-api.akintravel.com/graphqlforstaging. An emptyapiUrlfalls through to that default. PassapiUrlonly to override it. -
Breaking: the SDK reads no environment variables. It used to read the
NEXT_PUBLIC_AKIN_SDK_*names, and Next.js inlined them into the SDK, so a partner could set them and pass nothing in the config. From@akin-travel/partner-sdk2.0 it reads none of them, and a config without afirebaseblock cannot sign members in.@akin-travel/partner-sdktakes this as a major version.To upgrade, pass the values in the SDK config. You can keep the variable names, because your app now reads them:
firebase: { apiKey: process.env.NEXT_PUBLIC_AKIN_SDK_FIREBASE_API_KEY!, authDomain: process.env.NEXT_PUBLIC_AKIN_SDK_FIREBASE_AUTH_DOMAIN!, projectId: process.env.NEXT_PUBLIC_AKIN_SDK_FIREBASE_PROJECT_ID!, appId: process.env.NEXT_PUBLIC_AKIN_SDK_FIREBASE_APP_ID!, }, gipTenantId: process.env.NEXT_PUBLIC_AKIN_SDK_GIP_TENANT_ID!,Drop
NEXT_PUBLIC_AKIN_SDK_API_URLand its staging and dev variants:environmentpicks the URL. See the quickstart. -
New:
@akin-travel/sdk-core/server-operations. The four server-to-server documents, parsed withgraphqlalone.@akin-travel/sdk-coretakes this as a minor version. In Node, sdk-core now loads a Node build, which uses the same Apollo build as your@apollo/client. Bundlers keep the default build.