--- id: c6559a13-1a47-45e9-9914-38362cc45475 type: solution title: "Team ownership in auth flow" tags: [strat-gameplay-webapp, python, vue, auth, fix] importance: 0.6 confidence: 0.8 created: "2026-01-14T02:28:24.504551+00:00" updated: "2026-01-14T02:28:24.504551+00:00" --- Added get_teams_by_owner() to SBA API client using owner_id query param. Updated /api/auth/me to return user's teams. Frontend myTeamId now computed from authStore.userTeams matching game's home/away team IDs. isMyTurn checks actual ownership. Fixes CRIT-002.