Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.38 KB

README.md

File metadata and controls

53 lines (36 loc) · 1.38 KB

@pagopa/io-react-native-cieid 🪪

A React Native bridge to add CieID authentication on IO, it's based on cieid-ios-sdk and cieid-android-sdk

NOTE: It is not production ready and can only be used with iOS (Android platform not yet implemented)

Installation

// with npm
npm install @pagopa/io-react-native-cieid

// or if you use yarn
yarn add @pagopa/io-react-native-cieid

Usage

  • sp_url - is the URL of the federated service provider
  • sp_url_scheme - is the app bundle name to open (ex. it.ipzs.cieid)
import { IoReactNativeCieidView } from '@pagopa/io-react-native-cieid';

// ...

<IoReactNativeCieidView
  sp_url={'https://ios.idserver.servizicie.interno.gov.it/'}
  sp_url_scheme={'it.ipzs.cieid'}
  style={styles.container}
  onCieIDAuthenticationCanceled={() =>
    console.log('onCieIDAuthenticationCanceled')
  }
  onCieIDAuthenticationSuccess={() =>
    console.log('onCieIDAuthenticationSuccess')
  }
  onCieIDAuthenticationError={() => console.log('onCieIDAuthenticationError')}
/>;

// ...

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library