Skip to content

fix(auth): fail closed on invite quota count errors - #187

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/invite-quota-count-errors
Jul 29, 2026
Merged

fix(auth): fail closed on invite quota count errors#187
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/invite-quota-count-errors

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • return a safe 500 when issued invite usage cannot be counted
  • apply the same quota verification guard to quota checks and invite minting
  • add regression coverage for the failed count path

Test

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

uGig billable bugfix candidate. Not counted as revenue until accepted, invoiced, and paid.

@ralyodio
ralyodio merged commit 91a0f38 into profullstack:master Jul 29, 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