cal.pub0.org/apps/web/pages/api
Agusti Fernandez Pardo b8b1b9a6d0
fix: rate limit auth (#3820)
* fix: rate limit auth

* fix: replace lru-cache w memory-cache

* remove comments

* fix: yarn.lock

* fix: remove changes yarn lock

* fix: add missing EOL empty liune

* fix: move rate limiter so it kicks the last, limit to 10 tries per minute

* fix: move limiter w rest of code

* test: trying fix onboardong

* fix: undo changes in globalSetup.ts

* test: fix disable login for onboarding

* fix: use username instead of email for token check

* fix: tests

* fix: don't run on test

* fix: add missing comma

* fix: remove uniqueTokenPerInterval

* fix: add errorcode to packages lib auth

* Update packages/lib/rateLimit.ts

fix: improve readability

Co-authored-by: Omar López <zomars@me.com>

* Update packages/lib/rateLimit.ts

fix: no unnecessary any

Co-authored-by: Omar López <zomars@me.com>

* Update packages/lib/rateLimit.ts

fix: improve readability

Co-authored-by: Omar López <zomars@me.com>

* fix: rename interval -> intervalInMs

* fix: check user.email not username which could be empty

* fix: rateLimit update all naming

Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2022-08-30 13:58:35 -06:00
..
app-store Static images through webpack copy (#3986) 2022-08-26 10:31:55 -06:00
auth fix: rate limit auth (#3820) 2022-08-30 13:58:35 -06:00
availability Migrate legacy api endpoints to tRPC II (#3865) (#3991) 2022-08-26 15:58:08 -06:00
book fix: add required property on input (#3934) 2022-08-29 13:04:22 +00:00
cron Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
import Linting fixes round #1 (#2906) 2022-06-06 18:24:37 +00:00
integrations Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
intent-username Migrates all tRPC code to a monorepo package (#3484) 2022-07-22 11:27:06 -06:00
schedule Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
sync/helpscout chore: Sync Services to update external tools (#3814) 2022-08-26 15:10:12 -06:00
teams/[team] chore: Sync Services to update external tools (#3814) 2022-08-26 15:10:12 -06:00
trpc Migrates all tRPC code to a monorepo package (#3484) 2022-07-22 11:27:06 -06:00
user chore: Sync Services to update external tools (#3814) 2022-08-26 15:10:12 -06:00
cancel.ts AppStore CLI: Making video app creation a breeze with major cleanup of locations code throughout (#3825) 2022-08-25 18:48:50 -06:00
collect-events.ts Backported 973e0a3..6ad0e23 (#3943) 2022-08-26 12:07:44 -06:00
email.ts Broken Integration Alarm System (#3135) 2022-06-24 23:16:20 -06:00
integrations.ts Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
me.ts Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
nope.ts Middleware rewrite shenanigans 2022-08-16 13:59:38 -06:00
teams.ts chore: Sync Services to update external tools (#3814) 2022-08-26 15:10:12 -06:00
upgrade.ts Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
username.ts Migrates all tRPC code to a monorepo package (#3484) 2022-07-22 11:27:06 -06:00
v2-opt-in.ts Adds middleware to get V2 early access (#3617) 2022-08-09 10:21:15 +01:00
version.ts feat: adds new version endpoint in internal api (#3155) 2022-06-25 05:37:29 +00:00