The Verified Spec Hub.
Browse verified specs — complete solutions with working code, env vars, and edge cases.
Right Context.
Valid Build.
First Try.
Give your AI IDE verified, working code to reference — instead of letting it guess.
Search by task, language, or framework. Every spec is verified and ready to use as context.
# You need OAuth 2.0 in your Next.js app.# Instead of Googling and piecing together# outdated blog posts, you search TrueSpec.→ Spec #042: "OAuth 2.0 with NextAuth.js"→ Tags: Auth, Next.js, OAuth→ Assertions: 14/14 passed
Latest Specs
Showing 20 of 100 SpecsNext.js Google OAuth Login
Complete Google OAuth flow with NextAuth.js, token handling, session management
Supabase Email/Password Auth
Sign up, sign in, password reset, and protected routes with Supabase Auth
JWT Authentication in Express.js
Access/refresh token pattern with middleware guards and secure cookie storage
Firebase Auth with React
Google/GitHub sign-in, onAuthStateChanged listener, and route protection
Clerk Auth in Next.js App Router
Drop-in auth with Clerk, middleware protection, and user metadata
Passwordless Magic Link Auth
Email magic link flow with Resend and custom token verification
GitHub OAuth with FastAPI
OAuth2 Authorization Code flow with token exchange and user profile fetch
Role-Based Access Control (RBAC)
Role/permission system with middleware, database schema, and route guards
Secure Session Management with Redis
Express sessions with Redis store, expiration, and fingerprinting
Prisma + PostgreSQL Full Setup
Schema design, migrations, seeding, CRUD operations, and relations
Redis Caching for API Responses
Cache-aside pattern, TTL, invalidation, and cache stampede prevention
Safe Database Migrations
Zero-downtime migration patterns, rollback strategies, and data backfills
Full-Text Search in PostgreSQL
tsvector, tsquery, ranking, trigram similarity, and search indexing
SQLite for Desktop/Local Apps
better-sqlite3 setup, WAL mode, concurrent access, and performance tuning
Connection Pooling Done Right
PgBouncer, Prisma pool, Supabase pooler, and pool sizing formula