Skip to Content
The AKIN Travel developer platform is in beta — APIs may change. Get started →
Changelog2026-10-21

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) or sk_live_* (production). A publishable key keeps pk_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 as sk_*. Code that checks a key’s prefix must accept sk_ as well as pk_.

    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/server loads outside a bundler. A partner backend on Express, Fastify or a plain Node script crashed at require('@akin-travel/partner-sdk/server') (or import) with ERR_UNSUPPORTED_DIR_IMPORT. @akin-travel/sdk-core now 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-operations subpath, which imports only graphql, 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 from environment: https://api.akintravel.com/graphql for production (the default), https://staging-api.akintravel.com/graphql for staging. An empty apiUrl falls through to that default. Pass apiUrl only 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-sdk 2.0 it reads none of them, and a config without a firebase block cannot sign members in. @akin-travel/partner-sdk takes 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_URL and its staging and dev variants: environment picks the URL. See the quickstart.

  • New: @akin-travel/sdk-core/server-operations. The four server-to-server documents, parsed with graphql alone. @akin-travel/sdk-core takes 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.

Last updated on