Add support for auth_tokens in boot and update methods - #820
Merged
Conversation
Users can now pass authentication tokens to Intercom for secure data operations. The authTokens property accepts an object with any string key-value pairs.
Example usage:
boot({
email: 'john.doe@example.com',
userId: '9876',
authTokens: {
security_token: 'abc...' // JWT
}
})
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 5ff8584 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
|
@nhibberd hello! I'm currently facing this limitation with auth_tokens, will this PR be continued? 🙏 |
|
@kane-chang You can, for now, just use |
Layer the setAuthTokens method (Intercom('setAuthTokens')) on top of the
existing auth_tokens attribute so per-user Data Connector tokens can be
refreshed at runtime without a full update, matching the vanilla Intercom
SDK. Wire it through the provider, types, README and tests, clarify how
authTokens relates to intercomUserJwt, and drop the `as any` casts in the
test in favour of the typed window globals.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
# Conflicts: # packages/react-use-intercom/README.md # packages/react-use-intercom/src/mappers.ts # packages/react-use-intercom/src/provider.tsx # packages/react-use-intercom/src/types.ts
Owner
|
Thanks! |
Owner
|
Released in 5.8.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Users can now pass authentication tokens to Intercom for secure data operations. The authTokens property accepts an object with any string key-value pairs.
Example usage:
boot({
email: 'john.doe@example.com',
userId: '9876',
authTokens: {
security_token: 'abc...' // JWT
}
})
🤖 Generated with Claude Code