Hive Hive
Sign in

fix(auth): preserve linked identities across providers

GitHub issue · Closed

Metadata
Source
tuist/hive #14
Updated
Jun 24, 2026
Domains
Hive
Details

Summary

  • Preserve the currently signed-in account when connecting another identity provider.
  • Add Accounts.link_identity/2 to attach provider identities without moving identities owned by another user.
  • Keep anonymous OAuth callbacks on the existing sign-in path while redirecting linked accounts back to account identities.
  • Cover account-linking, idempotency, and already-linked identity handling in tests.

Testing

  • mix test test/hive/accounts_test.exs test/hive_web/controllers/auth_controller_test.exs test/hive_web/live/account_live/identities_test.exs
  • mix compile --warnings-as-errors
Flights

Investigate, reproduce, or fix this item in an isolated repository. Each Flight preserves its outcome and agent session.

New Flights are paused Configure model inference, GitHub, and a sandbox provider to start another Flight. Existing results remain available below.
No Flights yet

Start a Flight and preserve its objective, outcome, and session here.

Comments

No GitHub comments yet.