Skip to content

Accept production-sized Supabase TOTP QR responses - #99

Merged
Peragus01 merged 4 commits into
mainfrom
fix/operator-mfa-large-qr
Nov 10, 2026
Merged

Peragus01 merged 4 commits into
mainfrom
fix/operator-mfa-large-qr

Conversation

@Peragus01

Copy link
Copy Markdown
Owner

Confirmed production behavior

  • Supabase production Auth removed the stale unverified factor and created the new TOTP factor successfully (POST /auth/v1/factors, HTTP 200).
  • The production frontend bundle contains the XML-prefix fix, so the remaining rejection is client-side.
  • GoTrue emits a verbose high-error-correction SVG; the frontend's 100 kB cap can reject a valid production QR response.

Fix

  • Raise the bounded TOTP SVG response limit to 1 MB.
  • Continue extracting only the <svg>...</svg> document before encoding it.
  • Normalize the optional manual Base32 secret and do not block QR enrollment if only the manual fallback is unavailable.
  • Add regression coverage with a 110 kB XML-prefixed SVG.

Validation

  • Typecheck passed.
  • ESLint passed.
  • 25 test files / 158 tests passed.
  • Production build passed.
  • No database migrations or financial settings changed.

@vercel

vercel Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
peragus-svm Canceled Canceled Nov 10, 2026 3:46am UTC

@Peragus01
Peragus01 merged commit c784c94 into main Nov 10, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 83c81227 Deployed Nov 10, 2026 by vercel[bot]
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