Skip to content

fix(auth): validate debug sms phone strings - #218

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/debug-sms-phone-string-guard
Aug 1, 2026
Merged

fix(auth): validate debug sms phone strings#218
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/debug-sms-phone-string-guard

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • reject non-string or blank testPhoneNumber values before diagnostics or Supabase work
  • trim valid phone values before sending the debug OTP and redacting the response
  • add regression coverage for numeric and whitespace-only payloads

Verification

  • node node_modules\\vitest\\vitest.mjs run --config %TEMP%\\qryptchat-vitest-minimal.config.mjs "src/app/api/auth/debug-sms-config/route.test.js"
  • git diff --check

This is a focused validation fix for the development-only SMS diagnostics endpoint.

@ralyodio
ralyodio merged commit 8186f6d into profullstack:master Aug 1, 2026
8 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