Case study
Reward-based dog-training companion for the Guardian collar
Backend and mobile developer · 2026 – present · on TestFlight
Sign-in is Google or Apple only. The API verifies the provider's ID token against their published JWKS, cached and refreshed, and accepts only RS256 and ES256 so a token signed with a symmetric key can never be mistaken for a valid one. It then issues its own short access token and an opaque refresh token, stored only as a SHA-256 hash and rotated on every use.
On the very first sign-in and never again. Nothing was capturing it, so every account created before the fix would have lost its owner's name permanently, with no way to repair it later. Caught before launch and fixed with a migration.
The database tests skipped silently in CI because no Postgres was attached, and skips report as passes. They had been green and meaningless for weeks, including the one guarding the name above. CI now runs a Postgres service and fails the build if any database test skips.
Training sessions are scored by listening for cue words, which runs entirely on the device through Whisper and Silero voice detection in a background isolate. Nothing is uploaded, sessions are stored locally, and uploads carry client-generated identifiers so a retry after a dropped connection cannot create a duplicate.
The design called for a launch gate with no way past it. That reads as a rejection risk under App Store guideline 5.1.1, which expects people to use an app before handing over an identity. Onboarding runs with no account, and the account is offered afterwards as a way to back up the dog profile the owner has already built.