Overview:
The npm package is an implementation of AppAuth for React Native, providing a bridge for AppAuth-iOS and AppAuth-Android SDKs for communication with OAuth 2.0 and OpenID Connect providers. It supports OAuth providers that adhere to the OAuth2 spec and is tested with various OpenID and OAuth2 compliant providers.
Features:
- Support for React Native 0.63+
- Bridge for AppAuth-iOS and AppAuth-Android SDKs
- Compatible with OAuth 2.0 and OpenID Connect providers
- Authorization Code Flow support
- Tested with OpenID and OAuth2 compliant providers
- Follows best practices of RFC 8252 for Native Apps
- Supports PKCE extension to secure authorization codes
Installation:
- Install the npm package:
npm install react-native-app-auth
- Link the package to your project:
react-native link react-native-app-auth
- For iOS, install Pods in the iOS directory:
cd ios && pod install && cd ..
- For Android, make sure to add the necessary configurations to your AndroidManifest.xml file.
Summary:
The npm package provides a robust implementation of AppAuth for React Native, enabling seamless communication with OAuth 2.0 and OpenID Connect providers. It supports a wide range of providers, follows industry best practices, and ensures secure authentication flows for native apps. With its support for PKCE extension and adherence to RFC standards, developers can rely on this library for their authentication needs in React Native projects.