Admin access required

You are signed in, but this account is not in the admin_users table. Try admin again will keep bringing you back here until that row exists — it is not a bug.

Loading your account id…

Fastest fix (local, one command)

From the repo root, with SUPABASE_SERVICE_ROLE_KEY in apps/dashboard/.env.local:

pnpm auth:add-admin -- your@email.com

Then click Try admin again (or open /admin/recon-swarm).

If the command says the admin_users table is missing, create it once in Supabase → SQL Editor (the script will print the exact SQL when you re-run it after a failed attempt).

Or in Supabase → Table Editor → admin_users: insert user_id (UUID above) and optional email.