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!

remove rate limiting for POST sso/link_by_hash

Blue Mouse5e4c0b1d964f
diff --git a/src/auth/auth.controller.ts b/src/auth/auth.controller.ts
index e79cfa0c8..0256ec152 100644
--- a/src/auth/auth.controller.ts
+++ b/src/auth/auth.controller.ts
@@ -495,15 +495,7 @@ export class AuthController {
public async linkGoogleToAccount(
@Body() body: SSOLinkDto,
@CurrentUserId() userId: string,
- @Ip() ip: string,
): Promise<void> {
- await checkRateLimit(
- ip,
- 'sso-link',
- isDevelopment ? LOCAL_OAUTH_RATE_LIMIT : PRODUCTION_OAUTH_RATE_LIMIT,
- 1800,
- )
-
const { hash, provider } = body
await this.authService.linkSSOAccount(userId, hash, provider)