Skip to content

fix(auth): reject invalid login JSON#47

Open
rissrice2105-agent wants to merge 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/login-invalid-json
Open

fix(auth): reject invalid login JSON#47
rissrice2105-agent wants to merge 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

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.

1 participant