feat(identify): send user data to identify after oauth flow - #228
Merged
Merged
Conversation
LorrisSaintGenez
requested review from
8bittitan,
NatanTechofNY,
dylantientcheu and
pipeline1987
June 2, 2026 18:51
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 30 |
| Duplication | 14 |
TIP This summary will be updated as you push new changes.
8bittitan
approved these changes
Jun 3, 2026
social4hyq
pushed a commit
to social4hyq/homebrew-core
that referenced
this pull request
Sep 20, 2026
algolia 1.11.0 Created-by: HarmonybrewBot Commit-by: HarmonybrewBot Merged-by: HarmonybrewBot Description: Created by `brew bump` --- Created with `brew bump-formula-pr`.<details> <summary>release notes</summary> <pre>## What's Changed * feat(open): add new dashboard shortcuts by @LorrisSaintGenez in algolia/cli#225 * feat(application): update/upgrade/downgrade/plans commands by @LorrisSaintGenez in algolia/cli#224 * docs: add npm install option to README by @tkrugg in algolia/cli#223 * feat(application): add name, tos and plan selection during application creation by @LorrisSaintGenez in algolia/cli#227 * feat(identify): send user data to identify after oauth flow by @LorrisSaintGenez in algolia/cli#228 * feat(application): more precise plan upgrade/downgrade direction by @LorrisSaintGenez in algolia/cli#226 * feat(telemetry): CLI flow events by @LorrisSaintGenez in algolia/cli#243 * feat: add auth get command by @levimichael in algolia/cli#253 * chore(api client): Upgrade Algolia Go API client by @tkrugg in algolia/cli#254 * fix: update 'auth get' to support refresh by @levimichael in algolia/cli#255 * feat(auth): Add token to `auth get` command by @levimichael in algolia/cli#257 ## New Contributors * @levimichael made their first contribution in algolia/cli#253 **Full Changelog**: https://github.com/algolia/cli/compare/v1.10.5...v1.11.0</pre> <p>View the full release notes at <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2Falgolia%2Fcli%2Fpull%2F%3Ca+href%3D"https://github.com/algolia/cli/releases/tag/v1.11.0">https://github.com/algolia/cli/releases/tag/v1.11.0</a>.</p">https://github.com/algolia/cli/releases/tag/v1.11.0">https://github.com/algolia/cli/releases/tag/v1.11.0</a>.</p> </details> <hr> See merge request: Harmonybrew/homebrew-core!13019
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.
What
Persist the authenticated user's identity alongside the OAuth tokens so CLI telemetry can attribute events to the logged-in user.
StoredTokennow carriesuser_id/email/name, populated bySaveTokenfrom the OAuth response'suserobject (same keychain entry — identity is bound to the token, not a profile).LoadToken. Any caller reads identity straight off the stored token.root.gopopulatesCLIAnalyticsEventMetadatafrom the stored token beforeIdentify/Track. When authenticated, both carryuserId(alongsideanonymousId, so the first event aliases anonymous→user);email/namego onIdentifytraits.GetValidTokenback-fills identity from the refresh response for sessions created before this change, and preserves stored identity when a refresh response omits the user.Test
Preview
GROUT-350