Auth Flow
# 06 — JWT authentication flow
## Context
Use this when wiring auth into a FastAPI service for the first time, or
porting an existing service from API-key auth to bearer-token JWT.
This is the prompt where AI tools most enthusiastically reinvent the
universe — be sceptical of everything.
## Templatewhen to use it
Community prompt sourced from the open-source GitHub repo thunderstornX/cursor-vibe-starter (MIT). A "Auth Flow" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
codingcommunitydeveloper
source
thunderstornX/cursor-vibe-starter · MIT
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions