cal.pub0.org/apps/web/lib
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
..
auth Type fixes 2022-05-17 15:32:54 -06:00
config V2 Main (#3549) 2022-08-24 14:18:42 -06:00
core Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
hooks Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
mutations/bookings Availabilty consolitadion (#3010) 2022-06-10 12:38:46 -06:00
types Workflows (#3236) 2022-07-14 00:10:45 +00:00
webhooks Migrate legacy api endpoints to tRPC II (#3865) (#3991) 2022-08-26 15:58:08 -06:00
QueryCell.tsx Adds deprecation notice to QueryCell (#3977) 2022-08-26 09:32:58 +00:00
app-providers.tsx V2 Settings - Security View (#4018) 2022-08-30 13:46:52 -06:00
asStringOrNull.tsx Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
auth.ts fix: rate limit auth (#3820) 2022-08-30 13:58:35 -06:00
availability.ts Extract prisma to it's own package (#1823) 2022-02-15 13:30:52 -07:00
classNames.ts Add ui package for reusable components (#1916) 2022-02-21 09:41:25 -07:00
clock.ts Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
cropImage.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
ensureArray.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
getBooking.tsx save additional inputs as json + view details of booking (#2796) 2022-05-18 15:05:49 -06:00
hasKeyInMetadata.ts WIP stripe customer metedada sync (#3153) 2022-07-07 15:24:42 -06:00
isBrandingHidden.tsx Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
isOutOfBounds.tsx Migrates all tRPC code to a monorepo package (#3484) 2022-07-22 11:27:06 -06:00
isPrismaObj.ts WIP stripe customer metedada sync (#3153) 2022-07-07 15:24:42 -06:00
isSuccessRedirectAvailable.tsx Prisma fixes 2022-05-17 19:54:50 -06:00
jackson.ts Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
location.ts Fixes/locations (#2383) 2022-04-05 18:03:22 +00:00
parseDate.ts Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
parseZone.ts Consolidates dayjs in a single package 2022-06-28 14:48:24 -06:00
prisma.ts Admin/team billing downgrader (#2040) 2022-03-03 19:29:19 +00:00
profile.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
random.ts App Store (#1869) 2022-03-23 15:00:30 -07:00
saml.ts Migrates all tRPC code to a monorepo package (#3484) 2022-07-22 11:27:06 -06:00
slots.ts Migrates all tRPC code to a monorepo package (#3484) 2022-07-22 11:27:06 -06:00
slugify.ts Build fixes (#1929) 2022-02-21 18:45:35 +00:00