Skip to Content
The AKIN Travel developer platform is in beta — APIs may change. Get started →
React SDKPlatform support

Platform support

The @akin-travel/partner-sdk is a React convenience layer — providers, hooks, and headless components. It targets:

Supported
React18 / 19
Next.js15 / 16

Every other browser stack — Vue, Angular, Svelte, plain HTML, or a server-rendered site — uses the framework-agnostic Embed widget: a <script> tag plus Web Components (<akin-login>, <akin-loyalty-card>, <akin-tier-progress>) built on the same core, with Shadow-DOM style isolation and partner-token theming. React Native apps use the React Native SDK. Other native mobile apps and back-end services talk to the GraphQL API directly. None of these is a separate product: anything the SDKs do, you can do against the API.

React Native

@akin-travel/sdk-react-native is the React Native binding, at version 0.1.0 (pre-1.0, so a minor release can change its API). It has the same provider and hook API as the web SDK — AkinProvider, useAkinAuth, useAkinLoyalty, useSDK — on iOS and Android, with passkey and magic-link sign-in:

npm install @akin-travel/sdk-react-native npm install @react-native-firebase/app @react-native-firebase/auth \ @react-native-async-storage/async-storage react-native-passkey

It has native dependencies, so it needs a development build or a bare workflow. It does not run in Expo Go. react-native-passkey is optional: magic-link sign-in works without it. The package README has the native setup for Firebase and passkeys.

You often don’t need a client SDK at all:

If your backend already authenticates your users, read their loyalty standing server-to-server and serve it to the mobile client as cached state:

  1. Your React Native app talks only to your backend, as it already does.
  2. Your backend reads the member’s tier from AKIN server-to-server — keyed by email, authorized on your partner API key, no member sign-in or token exchange. From Node, the typed Server SDK wraps these calls for you.
  3. Your backend caches that standing and returns it to the client however it serves the rest of its data.

The member never touches AKIN auth, the mobile client never holds a partner API key, and you control caching and refresh. See Server-to-server reads for the request shape, or the Server SDK (Node) for a typed client.

If you instead need members to sign in to AKIN from the mobile client, use @akin-travel/sdk-react-native (above). The GraphQL API and its auth exchange also work from any HTTP client — see Using the API and Authentication.

Last updated on