Files
Codewalkers/apps/server/trpc/routers/account.ts
Lukas May 9c4131c814 feat: add addAccountByToken tRPC mutation with upsert logic and tests
Adds a new mutation that accepts an email + raw OAuth token and upserts
the account — creating it if it doesn't exist, updating credentials if
it does. Covers all four scenarios with unit tests (new, existing,
empty-email, empty-token validation).
2026-03-06 10:58:02 +01:00

3.2 KiB