Summary
Add Zod validation for OAuth callback endpoints to validate authorization codes and OAuth state values before processing provider responses.
Contexts
The OAuth callback endpoints (/auth/google/callback and /auth/github/callback) currently access code and state directly from query parameters. These values are security-sensitive and should be validated using Zod before token exchange and account processing occurs.
Tasks
Acceptance Criteria
Area
backend
Difficulty
Easy
Summary
Add Zod validation for OAuth callback endpoints to validate authorization codes and OAuth state values before processing provider responses.
Contexts
The OAuth callback endpoints (
/auth/google/callbackand/auth/github/callback) currently accesscodeandstatedirectly from query parameters. These values are security-sensitive and should be validated using Zod before token exchange and account processing occurs.Tasks
GET /auth/google/callbackGET /auth/github/callbackAcceptance Criteria
codeis rejected/auth/google/callbackuses Zod validation/auth/github/callbackuses Zod validationArea
backendDifficulty
Easy