All technical cases

Personal product in production

TEM AQUI with authentication and sessions built into the product

An affiliate storefront with Go, Next.js, and PostgreSQL: concrete controls in the backend and browser integration.

  • Go
  • Next.js
  • TypeScript
  • PostgreSQL
  • Argon2id

Product and responsibility

I built an affiliate storefront with an administration panel and a custom link shortener. The backend uses Go, chi, pgx, and sqlc; the frontend uses Next.js and TypeScript. The project brings together product development, persistence, authentication, and operations.

The storefront is public. Administration has a different boundary: publishing and editing content requires a valid session. Explaining this separation is more useful than claiming the product is secure simply because it uses a modern stack.

Implemented decisions

I used Argon2id for password hashing, with salt and parameters embedded in the hash. Passwords and session tokens receive different treatment: the session token is random, and the database receives its hash rather than the value presented by the browser.

Sessions support expiration and revocation. The backend validates the session on protected operations. The integration uses a shared public origin for the frontend and API, same-origin cookies, CSRF checks, and a Content Security Policy.

I used pgx and sqlc for database queries and structured logging. These controls have specific roles; none alone establishes the absence of vulnerabilities.

Evidence and existing tests

The repository contains tests for password hashing and verification, storage of the token hash, and session expiration and destruction. Scenarios cover missing or invalid sessions and mutation requests without the expected CSRF header or with an incorrect origin.

There are also tests for per-IP limits and capacity refill. This description comes from reviewing code and tests; it is not a fresh execution of the full suite or an independent production audit.

Limits and evolution

The product source remains private. This case publishes high-level decisions and behavior without customer data, secrets, or operational configuration. I do not claim conversion or revenue gains without measurement.

The next technical step is to keep checking these controls whenever authentication flows or integrations change. Cookies, CSRF, authorization, and rendering still need review even when the framework and dependencies are current.

References and evidence