Repository navigation
docs: Project ID location and identity tokens in README, Javadoc and sample - #64
Merged
Merged
Conversation
…sample - README: Project ID under Settings → Project → General, Kotlin quick start, dependency 19.5.0, sign-in with setUserJwt / setUserJwtProvider / clearIdentity, user hash only as older integrations, new docs.gleap.ai links (the old customer-identity link is a 404). - Javadoc (comments only): initialize, identify*, setUserJwt, clearIdentity, openProtectedFileFromUrl, GleapSessionProperties. - Sample app: the identify-with-hash button now shows setUserJwt. - POM description matches the README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The dashboard link now points to app.gleap.ai (app.gleap.io redirects there), and protected conversation files refer to "Protect new files" under Settings → Security → Conversation files instead of the former "Require authenticated file access" (Project settings → User identity). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Docs-only follow-up to 19.5.0 so the SDK describes itself the way the release works. No runtime code, no version bump, no tag.
What was wrong
19.0.0; the docs links pointed todocs.gleap.ai/documentation/..., and the Customer identity link (/documentation/guides/customer-identity) is a 404; the identity section offered the user hash as an alternative ("Instead of a token you can still identify with a user hash", with a code sample) and the sign-in sample had no logout (clearIdentity); the identity key path was missing the "Customer identity" step.initializepointed to "Settings → Project or the SDK install page";openProtectedFileFromUrltold apps to "identify the user with their user hash";identify*didn't say an identify without a token is unsigned;setUserJwtdidn't say no separate identify is needed or where the identity key lives;clearIdentitydidn't say to call it on logout;GleapSessionPropertiesconstructors said "The hash is as HMAC hash" even on constructors without a hash.gradle.properties): still the old bug-reporting tagline ("Know exactly why and how a bug happened ...").What changed
README.md: Project ID location, Kotlin snippet, dependency19.5.0, sign-in withsetUserJwt(after login and on every app start) / optionalsetUserJwtProvider/clearIdentityon logout; user hash only as "older integrations keep working" with the Upgrade to identity tokens link; links to Android setup, Android user identity and Customer identity.Gleap.java,iGleap.java,GleapSessionProperties.java: Javadoc only, no signatures or behavior changed.app/: the hash button now callssetUserJwtwith a marked placeholder token (TOKEN_FROM_YOUR_BACKEND, logged and refused until replaced); the null-identify test button no longer passes a null hash.gradle.properties:POM_DESCRIPTIONnow matches the README's first sentence. Maven Central only picks this up with the next release; no version bump here.Left alone: the 19.5.0 CHANGELOG entry (accurate), internal
sdkKeyfield/comments and wire names (sdkKey,apiKey,Api-Token,userHash) since renaming them would be a runtime change, tests, and the sample app's demo project value.Not built locally (no JDK 17 on this machine; Gradle 8.10 does not run on JDK 25). CI compiles and tests the library; the sample changes only use existing public API (
setUserJwt, the 3-argumentGleapSessionPropertiesconstructor).🤖 Generated with Claude Code