Previously, acceptInvite only wrote to the tenant schema, causing invited users to be invisible to the login() flow which queries public.users for cross-tenant email/phone lookup. Now inserts into both public.users and the tenant schema within the same transaction, matching registerWithNewTenant behavior. Also tightens duplicate check to cross-tenant uniqueness (public.users) instead of per-tenant. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| gateway | ||
| services | ||
| shared | ||