PitchAI

Retrieve a sign-in code without sharing its stored seed

PitchAI built an internal service for storing time-based authentication seeds and returning current sign-in codes. The implementation added readers limited to specific entries, expiring retrieval links and a record of successful code access.

Internal operations
Deployed internal service
An administrator manages stored entries. A scoped reader retrieves a code for its permitted entry; the seed stays in the service.
Representative access diagram. No real account labels, seeds, sign-in codes or access tokens are shown.

Store the seed, return the code

A time-based authenticator generates changing codes from a stored seed. The original requirement was a service that would persist those seeds, authenticate callers and return the current code.

The service encrypts seeds in storage. Its code response contains the generated code and its expiry information, while the underlying seed stays out of that response.

Give a reader access to one entry

Administrators can create account entries and issue access tokens. A reader token is tied to a particular entry; it cannot retrieve another entry's code through the reader route.

The service checks whether a token is active and whether it has expired before accepting it. Administrators can revoke tokens. Administrative operations and ordinary code retrieval use separate authorization checks.

From container validation to a running service

The service was implemented in March 2026 with database migrations, command-line helpers and container packaging. Validation covered authentication behavior, code generation, persistence and a running container's health.

By August 2026, operational checks recorded the deployed service with passing health and readiness checks. Its interface covers seed storage, controlled code retrieval and administration through an API and command-line tools.

Browse all case studies