npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@curity/identityserver-haapi-react-native-sdk

v1.0.1

Published

React native module for Haapi

Readme

HAAPI React Native SDK (@curity/identityserver-haapi-react-native-sdk)

React Native bridge for the Curity Identity Server's Hypermedia Authentication API (HAAPI). Enables OAuth 2.0 / OIDC + HAAPI authentication flows in React Native + Expo apps via the native HAAPI iOS and Android SDKs published by Curity.

Requirements

  • Node.js 22 or later
  • npm 10 or later
  • React Native 0.85 or later
  • Expo SDK 56
  • Xcode 26.2 or later (for iOS development)
  • iOS 16.4 or later (deployment target floor; required by Expo 56's expo-modules-core)
  • CocoaPods 1.16 or later (still required for Expo autolinking; the HAAPI SDK is pulled in via Swift Package Manager from inside the podspec)
  • Android Studio (for Android development)
  • Java Development Kit (JDK) 17 or later (for Android development)
  • Android SDK (compileSdk 36, minSdk 26)
  • Gradle
  • An emulator or physical device for testing
  • A Curity Identity Server instance with HAAPI enabled

Installation

npm install @curity/identityserver-haapi-react-native-sdk

Android integration is automatic — the HAAPI Android SDK is resolved through this package's Gradle file via Expo autolinking; no extra wiring required.

iOS uses Swift Package Manager. Add this package's Expo config plugin to the plugins array of your app.json (or app.config.js) so that expo prebuild embeds the HAAPI Swift package into your Xcode project — no manual Podfile or .xcodeproj editing:

{
  "expo": {
    "plugins": ["@curity/identityserver-haapi-react-native-sdk"]
  }
}

Then run npx expo prebuild (or npx expo run:ios) to apply it. The HAAPI SDK version is pinned automatically from this package — you do not specify it in app.json.

Quick Start

import {
    initializeForHaapi,
    createHaapiConfiguration,
    createIOSConfiguration,
    createAndroidConfiguration,
} from '@curity/identityserver-haapi-react-native-sdk';

const accessor = await initializeForHaapi(
    createHaapiConfiguration({
        baseUrl: 'https://your-curity-server',
        authorizationEndpointUrl: 'https://your-curity-server/oauth/authorize',
        tokenEndpointUrl: 'https://your-curity-server/oauth/token',
        iosConfig: createIOSConfiguration({ /* ... */ }),
        androidConfig: createAndroidConfiguration({ /* ... */ }),
    })
);

const response = await accessor.haapiManager.start();
// Drive the flow via accessor.haapiManager.submitForm / followLink,
// then exchange the auth code via accessor.oauthTokenManager.fetchAccessToken.

await accessor.close();

accessor.close() is mandatory before re-initialising or switching modes. Re-init without close rejects with error.code === "HAAPI_ACCESSOR_ALREADY_INITIALIZED".

Documentation

Full documentation is available in the Curity developer guide:

In addition, the TypeScript types shipped with this package serve as an inline reference — every public API has JSDoc, which your IDE's IntelliSense will surface.

License

Proprietary — Curity AB. SPDX identifier UNLICENSED (see package.json). For licensing terms and contact, see legal.md.