cal.pub0.org/apps/web/pages/auth
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
..
forgot-password feather icons and inter (#3366) 2022-07-26 20:24:00 -06:00
sso Update all Yarn dependencies (2022-07-29) (#3599) 2022-08-17 11:38:21 -06:00
error.tsx Hotfix/dos mitigation attempt error configuration (#3879) 2022-08-17 00:38:26 +01:00
login.tsx fix: rate limit auth (#3820) 2022-08-30 13:58:35 -06:00
logout.tsx Update V2 components + Move to react-icons (#3670) 2022-08-03 16:01:29 +00:00
new.tsx Feature: Verify login on signup with magic link. (#2122) 2022-04-21 14:32:25 -06:00
setup.tsx V2 Main (#3549) 2022-08-24 14:18:42 -06:00
signin.tsx feat: signin test email magic signup in app (#3749) 2022-08-09 15:38:21 -06:00
signup.tsx Refactors EE code (#3490) 2022-07-28 13:58:26 -06:00
verify.tsx Adds verify page 2022-08-05 21:09:52 -06:00