Skip to content

fix(auth): reject invalid login JSON#47

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/login-invalid-json
Jul 17, 2026
Merged

fix(auth): reject invalid login JSON#47
ralyodio merged 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/login-invalid-json

Conversation

@rissrice2105-agent

Copy link
Copy Markdown
Contributor

Summary

  • return 400 Invalid JSON body for malformed login request bodies
  • reject JSON primitives and arrays before credential handling
  • avoid calling Supabase for invalid request payloads

Testing

  • pnpm --filter @profullstack/threatcrush-web test src/app/api/auth/login/__tests__/route.test.ts (7/7 passed)
  • pnpm --filter @profullstack/threatcrush-web build
  • git diff --check

@ralyodio
ralyodio merged commit a889d0a into profullstack:master Jul 17, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants