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

2026-10-26 — partner-sdk 2.0.0, and sdk-core, sdk-embed and sdk-react-native on npm

This release publishes @akin-travel/partner-sdk 2.0.0 and the first npm releases of @akin-travel/sdk-core, @akin-travel/sdk-embed and @akin-travel/sdk-react-native, each at 0.1.0 (#7954 ). The last partner-sdk release was 1.0.8. Read the breaking changes before you upgrade.

Breaking — @akin-travel/partner-sdk 2.0.0

The SDK no longer reads NEXT_PUBLIC_AKIN_SDK_* environment variables

Next.js inlined these variables into the SDK even from node_modules, so a partner could set them and pass nothing in the config. 2.0.0 reads only its config. A config without a firebase block cannot sign members in (#7581 ).

Migration: pass each value in the SDK config. Your app can keep the variable names, because your app now reads them:

Variable the SDK used to readPass instead
NEXT_PUBLIC_AKIN_SDK_FIREBASE_API_KEYfirebase.apiKey
NEXT_PUBLIC_AKIN_SDK_FIREBASE_AUTH_DOMAINfirebase.authDomain
NEXT_PUBLIC_AKIN_SDK_FIREBASE_PROJECT_IDfirebase.projectId
NEXT_PUBLIC_AKIN_SDK_FIREBASE_APP_IDfirebase.appId
NEXT_PUBLIC_AKIN_SDK_GIP_TENANT_IDgipTenantId
NEXT_PUBLIC_AKIN_SDK_API_URL, …_STAGING_API_URL, …_DEV_API_URLnothing: environment picks the URL. Pass apiUrl only for a different endpoint
config={{ partnerId, apiKey, 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!, }}

Sign-up requires dateOfBirth

AKIN membership is for adults aged 18 and over, so PasswordlessSignUpData and SignUpData (the password sign-up) each have a required dateOfBirth (YYYY-MM-DD) and an optional nationality (ISO 3166-1 alpha-2, for example 'AR'). Code that builds either object without a date of birth no longer compiles. The API refuses a sign-up with no date of birth, a future or malformed date, an age under 18, or a nationality that is not an ISO 3166-1 code (#7870 , #7937 ).

Migration: add a date-of-birth input to your sign-up form (and a nationality picker, if you want one) and pass both to signUpPasswordless or signUp. The headless SignupForm exposes dateOfBirth / setDateOfBirth and nationality / setNationality, and refuses a submit without a date of birth, in password mode too.

A password signUp now resolves once the member is created, not when the login account is. It rejects, with the API’s reason, when the member create is refused. The same applies to signUp in @akin-travel/sdk-react-native. nationality is the guest’s citizenship. It is not countryCode, which stays the phone number’s country.

Node 20.19+ or 22.12+

  • engines.node is ^20.19.0 || >=22.12.0. The CommonJS build loads the ESM @akin-travel/sdk-core, which Node supports only from those versions.

Added — @akin-travel/partner-sdk 2.0.0

  • @akin-travel/partner-sdk/server — a typed Node client for the server-to-server API. See Server SDK (Node). It loads in plain Node and does not load Apollo, React or Firebase.
  • @akin-travel/sdk-core is a dependency (^0.1.0). The Apollo client, config resolution, auth operations and the shared auth and loyalty types now come from it. The public API (AkinProvider, useAkinAuth, useAkinLoyalty, useSDK and the headless components) is unchanged.

Changed — @akin-travel/partner-sdk 2.0.0

  • The default apiUrl is the URL for your environment, and an empty apiUrl falls through to it. createAkinClient({ partnerId, apiKey }) targets https://api.akintravel.com/graphql instead of throwing.
  • SimpleTierCards and TierBenefits pick white or black text by the higher WCAG contrast ratio against the tier colour, so the text never falls below 4.5:1. #rgb and #rrggbbaa colours are also accepted (#7330 ).

Added — first npm releases

  • @akin-travel/sdk-core 0.1.0 — the framework-agnostic core that the web, embed and React Native SDKs share: the GraphQL client and token cache, config resolution, the auth and loyalty operations, and the server-to-server documents at @akin-travel/sdk-core/server-operations.
  • @akin-travel/sdk-embed 0.1.0 — the Embed widget: Web Components (<akin-login>, <akin-loyalty-card>, <akin-tier-progress>, <akin-book-search>) for any site. Load it from the jsDelivr CDN with a <script> tag, or install it with npm.
  • @akin-travel/sdk-react-native 0.1.0 — the React Native binding, with the same provider and hook API as the web SDK on iOS and Android. See Platform support.

The three new packages are pre-1.0, so a minor release can change their API.

Last updated on