cal/packages/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
..
browser V2 Main (#3549) 2022-08-24 14:18:42 -06:00
date-fns Consolidates dayjs in a single package 2022-06-28 14:48:24 -06:00
hooks V2 Main (#3549) 2022-08-24 14:18:42 -06:00
server Added Syntax error case and also default error returning (#4015) 2022-08-29 18:05:35 -06:00
sync chore: Sync Services to update external tools (#3814) 2022-08-26 15:10:12 -06:00
test One jest to rule them all (#3957) 2022-08-29 22:33:53 +00:00
webhooks Zapier Trigger: After Meeting ends (#3827) 2022-08-15 20:18:41 +00:00
auth.ts fix: rate limit auth (#3820) 2022-08-30 13:58:35 -06:00
availability.ts Fixes collective availability for teams with overlapping day timezones (#3898) 2022-08-22 23:53:51 +00:00
CalendarService.ts Fix availability free-busy data pull, location change and status in CALDAV | new branch (attempt#2) (#3958) 2022-08-25 14:48:30 +05:30
CalEventParser.ts refactor: use BookingReference instead of DailyEventReference (#3667) 2022-08-10 18:53:05 -06:00
classNames.ts Add ui package for reusable components (#1916) 2022-02-21 09:41:25 -07:00
CloseCom.ts chore: Sync Services to update external tools (#3814) 2022-08-26 15:10:12 -06:00
CloseComeUtils.ts chore: Sync Services to update external tools (#3814) 2022-08-26 15:10:12 -06:00
constants.ts fix: developer docs url (#3914) 2022-08-22 22:56:55 +02:00
crypto.ts App Store (#1869) 2022-03-23 15:00:30 -07:00
CustomBranding.tsx Feat/design system (#3051) 2022-07-22 18:39:50 -06:00
default-cookies.ts Update default-cookies.ts 2022-06-05 13:54:13 -06:00
defaultAvatarImage.ts Few updates to V2 components (#3532) 2022-07-27 23:12:27 +01:00
defaultEvents.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
deriveAppDictKeyFromType.ts Close.com App (#3709) 2022-08-15 20:45:15 +00:00
env.ts Feature: Verify login on signup with magic link. (#2122) 2022-04-21 14:32:25 -06:00
errors.ts Fix/office365 api call (#3534) 2022-07-27 19:12:42 +00:00
fetchUsername.ts feature/settings-username-update (#2306) 2022-07-06 13:31:07 -06:00
getIP.ts Implements quick ip banlist 2022-08-24 10:57:23 -06:00
getPlaceholderAvatar.tsx Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
getSafeRedirectUrl.ts Fix hubspot callback (#3195) 2022-06-30 07:01:07 +00:00
hasKeyInMetadata.ts feature/settings-username-update (#2306) 2022-07-06 13:31:07 -06:00
http-error.ts Stripe to monorepo (#2063) 2022-03-09 15:56:05 -07:00
i18n.ts Migrates all tRPC code to a monorepo package (#3484) 2022-07-22 11:27:06 -06:00
index.ts Bugfix/i3531 round robin assigns to unavailable members (#3813) 2022-08-15 13:52:01 -06:00
isMac.ts Adds a fully extensible command(ctrl)+k interface for Cal (#3346) 2022-07-14 06:45:07 +00:00
isOutOfBounds.tsx Bugfix/i3531 round robin assigns to unavailable members (#3813) 2022-08-15 13:52:01 -06:00
isPrismaObj.ts License server (#2379) 2022-05-26 11:07:14 -06:00
isRecurringEvent.ts Recurring event fixes (#3030) 2022-06-09 18:32:34 -06:00
jackson.ts Migrates all tRPC code to a monorepo package (#3484) 2022-07-22 11:27:06 -06:00
jsonUtils.ts App Store (#1869) 2022-03-23 15:00:30 -07:00
logger.ts Add getSchedule tests (#3233) 2022-07-21 10:44:23 -06:00
next-seo.config.ts V2 Main (#3549) 2022-08-24 14:18:42 -06:00
notEmpty.ts App Store (#1869) 2022-03-23 15:00:30 -07:00
notification.ts Routing Forms (#2785) 2022-07-14 12:40:53 +00:00
objectKeys.ts Enables strict mode in nextjs apps (#2354) 2022-04-04 20:26:14 +00:00
package.json One jest to rule them all (#3957) 2022-08-29 22:33:53 +00:00
profile.ts Migrates all tRPC code to a monorepo package (#3484) 2022-07-22 11:27:06 -06:00
random.ts App Store (#1869) 2022-03-23 15:00:30 -07:00
rateLimit.ts fix: rate limit auth (#3820) 2022-08-30 13:58:35 -06:00
recurringStrings.ts Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
saml.ts Migrates all tRPC code to a monorepo package (#3484) 2022-07-22 11:27:06 -06:00
sanitizeCalendarObject.ts Fix availability free-busy data pull, location change and status in CALDAV | new branch (attempt#2) (#3958) 2022-08-25 14:48:30 +05:30
serverConfig.ts Feature: Verify login on signup with magic link. (#2122) 2022-04-21 14:32:25 -06:00
slots.ts Fixes collective availability for teams with overlapping day timezones (#3898) 2022-08-22 23:53:51 +00:00
slugify.ts Build fixes (#1929) 2022-02-21 18:45:35 +00:00
telemetry.ts V2 Main (#3549) 2022-08-24 14:18:42 -06:00
timeFormat.ts Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
tsconfig.json Migrates all tRPC code to a monorepo package (#3484) 2022-07-22 11:27:06 -06:00
webstorage.ts Hotfix: Embed - Fix issue in accessing sessionStorage in certain scenarios (#3851) 2022-08-16 04:18:13 +00:00
weekday.ts Feature/multiple schedules post turbo (#2150) 2022-03-17 09:48:23 -07:00