io-react-native-cieid 0.2.1
Install from the command line:
Learn more about npm packages
$ npm install @pagopa/io-react-native-cieid@0.2.1
Install via package.json:
"@pagopa/io-react-native-cieid": "0.2.1"
About this version
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)
// with npm
npm install @pagopa/io-react-native-cieid
// or if you use yarn
yarn add @pagopa/io-react-native-cieid
- 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')}
/>;
// ...
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library