Socket
Socket
Sign inDemoInstall

@curity/react-native-haapi-module

Package Overview
Dependencies
Maintainers
6
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@curity/react-native-haapi-module

React Native Modules to use with Hypermedia Authentication API of the Curity Identity Server


Version published
Weekly downloads
1
decreased by-80%
Maintainers
6
Weekly downloads
 
Created
Source

react-native-haapi-module

Getting started

$ npm install @curity/react-native-haapi-module --save

Usage

import {NativeModules} from "react-native";

const {HaapiModule} = NativeModules;

// Example configuration
const haapiConfiguration = {
    "appRedirect": "app:start",
    "keyStoreAlias": "haapi-react-native",
    "clientId": "react-dev-client",
    "baseUri": "https://login.example.com",
    "tokenEndpointUri": "https://login.example.com/oauth/token",
    "authorizationEndpointUri": "https://login.example.com/oauth/authorize",
    "revocationEndpointUri": "https://login.example.com/oauth/revoke",
    "scope": "openid profile",
    "registrationEndpointUri": "https://login.example.com/oauth/registration",
    "fallback_template_id": "react-native-fallback",
    "registration_secret": "my-good-secret"
}

HaapiModule.load(haapiConfiguration)

export default HaapiModule;

Example implementation

See https://github.com/curityio/haapi-react-native-example for example implementation

Known limitations

  • Selfsigned certificates needs to be imported to trust store
  • No Extra authorization parameters like acr
  • Only Android yet

Keywords

FAQs

Package last updated on 05 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc