Skip to content

🐛 app: send intercom token#656

Merged
cruzdanilo merged 1 commit intomainfrom
guille
Jan 20, 2026
Merged

🐛 app: send intercom token#656
cruzdanilo merged 1 commit intomainfrom
guille

Conversation

@dieguezguille
Copy link
Member

@dieguezguille dieguezguille commented Jan 20, 2026

Summary by CodeRabbit

  • Bug Fixes
    • Fixed an issue with Intercom authentication token handling in the mobile application

✏️ Tip: You can customize this high-level summary in your review settings.

@changeset-bot
Copy link

changeset-bot bot commented Jan 20, 2026

🦋 Changeset detected

Latest commit: 0009eb3

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@gemini-code-assist
Copy link

Summary of Changes

Hello @dieguezguille, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request resolves a bug concerning the Intercom integration by modifying how user authentication tokens are transmitted. The change updates the token handling mechanism from a hash-based approach to a JSON Web Token (JWT) based approach, ensuring correct user authentication with the Intercom service.

Highlights

  • Intercom Token Handling: The method for sending the Intercom user authentication token has been updated from Intercom.setUserHash to Intercom.setUserJwt.
  • Changelog Entry: A new changeset file has been added, documenting a patch release for @exactly/mobile related to sending the Intercom token.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coderabbitai
Copy link

coderabbitai bot commented Jan 20, 2026

Walkthrough

This pull request updates the Intercom authentication method in the native login flow from setUserHash to setUserJwt and adds a corresponding changeset file documenting the patch-level change for the @exactly/mobile package.

Changes

Cohort / File(s) Summary
Build Configuration
.changeset/slick-mails-sing.md
Adds changeset entry documenting patch version update with message about Intercom token handling.
Source Code
src/utils/intercom.ts
Changes Intercom authentication method in native login flow from setUserHash(token) to setUserJwt(token).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title '🐛 app: send intercom token' directly describes the main change: updating how the app sends the Intercom token by switching from setUserHash to setUserJwt in the native login flow.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch guille

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly addresses a bug by updating the Intercom SDK call from setUserHash to setUserJwt for the native platform. This change aligns the native implementation with the web version, ensuring that the Intercom token, which is a JWT, is handled appropriately. The changeset entry is also correctly formatted.

@cruzdanilo cruzdanilo merged commit 0009eb3 into main Jan 20, 2026
3 checks passed
@cruzdanilo cruzdanilo deleted the guille branch January 20, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants