Update Intercom SDK to v18.2.0 and add setUserJWT API #301
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes: https://github.com/intercom/intercom/issues/413021
This pull request updates the Intercom iOS SDK to version 18.2.0 and introduces a new
setUserJWTAPI for both iOS and Android platforms. These changes are necessary to incorporate JWT-based authentication support for enhanced security in the Intercom Messenger, as well as to ensure our React Native wrapper stays up-to-date with the latest Intercom SDK features.The main changes in this PR include:
intercom-react-native.podspecfile to specify Intercom iOS SDK version 18.2.0.setUserJWTmethod in both iOS and Android native modules.setUserJwtmethod in the React Native wrapper.The
setUserJWTAPI allows developers to set a JSON Web Token (JWT) for the current user, enhancing security for the Intercom Messenger. This feature is compatible with Intercom SDK version 18.2.0 and above, providing a seamless integration for React Native applications using Intercom.The implementation follows existing patterns in the codebase, includes proper error handling, and is thoroughly tested to ensure reliability across different scenarios. All existing tests continue to pass, and the new implementation adheres to the project's coding standards and TypeScript requirements.