Selected work

ANSR Accountants client portal

A Canadian accounting firm was collecting tax IDs over email. This is what replaced it.

Role
Solo build for a client
Year
2026
Status
Live
Stack
Next.jsTypeScriptPrismaPostgreSQLSupabaseNextAuthZodResend
ANSR Accountants portal home page

How it fits together

Client

6-step intake, uploads, messaging

Next.js route

App Router API

Zod validation

every input, before any logic

Role re-verified in the database

a token is a claim about the past; authorisation checks the present

AES-256-GCM, PBKDF2-derived key

the SIN is ciphertext before it reaches storage

PostgreSQL

via Prisma

Supabase Storage

documents, payment proof

Resend

10 transactional templates

Two checkpoints sit on every request. Input is validated before any handler runs, and admin routes re-verify the role against the database rather than trusting the token. Social Insurance Numbers are encrypted before they are written.

The problem

A small accounting firm was collecting tax documents and Social Insurance Numbers over email. They needed a client portal that handled Canadian tax specifics and could be trusted with the most sensitive data a person has.

What was built

  • A six-step intake questionnaire with save-and-resume, covering T4, T5, T4A and T2202 slips, RRSP, TFSA and FHSA deductions, and CRA compliance fields.
  • Document upload to Supabase Storage, invoice management with an e-Transfer payment flow, client-to-admin messaging and T1 document delivery.
  • An admin dashboard with search, sort, pagination, CSV export, status tracking and payment confirmation, plus ten transactional email templates.

Decisions worth explaining

  • SINs are encrypted with AES-256-GCM using PBKDF2-derived keys before they touch the database.
  • Admin routes re-verify the role against the database on every request instead of trusting the JWT, and every API input is validated with Zod.

Outcome

Live on the firm's own domain and carrying a real filing season. The partners see one dashboard instead of an inbox, and the most sensitive field in the system is encrypted before it is ever written down.

More work