You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(auth): source AuthUser.id from Kratos external_id, add identityId
AuthUser.id is now always public.users.id (the Kratos identity's
external_id) rather than the Kratos identity id, and a new identityId
field carries the Kratos id for admin/Kratos operations. This fixes
PostHog identify, tRPC telemetry, and team resolution, which all expect
public.users.id.
- identity.ts mappers require external_id (no silent fallback to the
Kratos id) and set identityId.
- getAuthContext refuses a session whose identity has no external_id; the
edge gate (isKratosSessionActive) rejects it too, so the user is routed
to /sign-in instead of looping, where a fresh login re-runs bootstrap
and backfills external_id.
- Drop the updateUser override that re-stamped the Kratos id over id.
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
0 commit comments