Skip to content

Conversation

@kilian-tennyson
Copy link
Contributor

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 setUserJWT API 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:

  1. Updating the intercom-react-native.podspec file to specify Intercom iOS SDK version 18.2.0.
  2. Implementing the setUserJWT method in both iOS and Android native modules.
  3. Adding a TypeScript interface and implementation for the setUserJwt method in the React Native wrapper.
  4. Creating comprehensive test coverage for the new API.

The setUserJWT API 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.

@kilian-tennyson kilian-tennyson self-assigned this Jul 4, 2025
@kilian-tennyson kilian-tennyson marked this pull request as ready for review July 4, 2025 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants