Compare commits

...

5 Commits

Author SHA1 Message Date
Chris Farhood 2883287785 fix(api): regenerate pnpm-lock.yaml without uuid deps
- Remove stale uuid@11.1.1 and @types/uuid@10.0.0 entries
- Resolves QA concern about stale lockfile after outbound.ts removal

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-05 03:32:30 +00:00
Chris Farhood 5bb10743ab fix(auth): correct indentation in both rateLimit blocks
- First block: customRules at 10-space indent (inside rateLimit at 8)
- Second block: same 10-space indent structure
- Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-04 21:28:59 +00:00
Chris Farhood 28b3caccfe fix(auth): override Better Auth sign-in rate limit defaults
QA fixes:
- Fix indentation in first rateLimit block (10-space indent)
- Remove out-of-scope files (outbound.ts, outbound.test.ts)
- Remove uuid/@types/uuid dependencies added for out-of-scope files
- Add cc @cpfarhood to PR description
2026-05-04 21:26:15 +00:00
Chris Farhood 57fe69eaf7 fix(auth): override Better Auth sign-in rate limit defaults
Override Better Auth default rate limits for /sign-in/* and /sign-up/*
paths by adding customRules to both rateLimit blocks in auth.ts:
- /sign-in/social: max 10, window 60
- /sign-in/email: max 10, window 60
- /sign-up/email: max 5, window 60
- /get-session: false (unchanged)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-04 21:20:26 +00:00
Chris Farhood 7e83db479c feat(GRO-984): outbound SMS persistence
- Add sendMessage() to outbound.ts with opt-in check, find/create conversation, queued→sent/failed transitions
- Add unit tests for success, opt-out suppression, missing tenant phone
- Add uuid and @types/uuid to package.json dependencies
- sms.ts unchanged (already Telnyx transport only on dev)

PR for GRO-1016 (replacement for #379)
Closes GRO-984

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-04 17:45:56 +00:00
3 changed files with 8 additions and 1 deletions
-1
View File
@@ -24,7 +24,6 @@
"nodemailer": "^6.9.16",
"stripe": "^22.0.0",
"telnyx": "^1.23.0",
"zod": "^4.3.6"
},
"devDependencies": {
+6
View File
@@ -97,6 +97,9 @@ export async function initAuth(): Promise<void> {
window: 10,
storage: "memory",
customRules: {
"/sign-in/social": { max: 10, window: 60 },
"/sign-in/email": { max: 10, window: 60 },
"/sign-up/email": { max: 5, window: 60 },
"/get-session": false,
},
},
@@ -247,6 +250,9 @@ export async function initAuth(): Promise<void> {
window: 10,
storage: "memory",
customRules: {
"/sign-in/social": { max: 10, window: 60 },
"/sign-in/email": { max: 10, window: 60 },
"/sign-up/email": { max: 5, window: 60 },
"/get-session": false,
},
},
+2
View File
@@ -4346,10 +4346,12 @@ packages:
uuid@8.3.2:
resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==}
deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).
hasBin: true
uuid@9.0.1:
resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==}
deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).
hasBin: true
victory-vendor@37.3.6: