Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

ease rate limits

Blue Mouseb07b2b86e321
diff --git a/src/auth/auth.controller.ts b/src/auth/auth.controller.ts
index 2188e8f45..6f6446a04 100644
--- a/src/auth/auth.controller.ts
+++ b/src/auth/auth.controller.ts
@@ -421,7 +421,7 @@ export class AuthController {
@Post('google/generate')
@Public()
async generateAuthURL(@Ip() ip: string): Promise<any> {
- await checkRateLimit(ip, 'g-sso-generate', 15)
+ await checkRateLimit(ip, 'g-sso-generate', 15, 1800)
return this.authService.generateGoogleURL()
}
@@ -433,7 +433,7 @@ export class AuthController {
@Body() body: AuthUserGoogleProcessCodeDto,
@Ip() ip: string,
): Promise<any> {
- await checkRateLimit(ip, 'g-sso-process', 15)
+ await checkRateLimit(ip, 'g-sso-process', 15, 1800)
const { token, hash } = body
@@ -449,7 +449,7 @@ export class AuthController {
@Headers() headers: unknown,
@Ip() ip: string,
): Promise<any> {
- await checkRateLimit(ip, 'g-sso-hash', 15)
+ await checkRateLimit(ip, 'g-sso-hash', 15, 1800)
const { hash } = body
@@ -468,7 +468,7 @@ export class AuthController {
@CurrentUserId() userId: string,
@Ip() ip: string,
): Promise<void> {
- await checkRateLimit(ip, 'g-sso-link', 15)
+ await checkRateLimit(ip, 'g-sso-link', 15, 1800)
const { hash } = body