Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: disable otp rate limit on local dev #2114

Merged
merged 1 commit into from
Dec 13, 2022

Conversation

halfwhole
Copy link
Collaborator

Problem

Integration tests on local dev (e.g. #2091) can make many user logins within a short time period, and if the OTP rate limit is too low, the logins will fail

Solution

Disable OTP rate limiting on local dev. Setting the max rate limit to 0 disables it entirely (see express-rate-limit documentation)

@halfwhole halfwhole force-pushed the chore/disable-otp-rate-limit-dev branch from b04dfaa to 2f63f15 Compare December 7, 2022 02:54
Copy link
Contributor

@gweiying gweiying left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@halfwhole halfwhole merged commit 49e0cee into develop Dec 13, 2022
@halfwhole halfwhole deleted the chore/disable-otp-rate-limit-dev branch December 13, 2022 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants