Skip to content

Commit

Permalink
fix(rate limiter): use correct paths (specklesystems#2036)
Browse files Browse the repository at this point in the history
  • Loading branch information
iainsproat authored Feb 12, 2024
1 parent 5b95ddb commit c5f5bf7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/server/modules/core/services/ratelimiter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ export enum RateLimitAction {
'GET /objects/:streamId/:objectId' = 'GET /objects/:streamId/:objectId',
'GET /objects/:streamId/:objectId/single' = 'GET /objects/:streamId/:objectId/single',
'POST /graphql' = 'POST /graphql',
'GET /auth/local' = 'GET /auth/local',
'GET /auth/local/login' = 'GET /auth/local/login',
'GET /auth/azure' = 'GET /auth/azure',
'GET /auth/gh' = 'GET /auth/gh',
'GET /auth/google' = 'GET /auth/google',
'GET /auth/goog' = 'GET /auth/goog',
'GET /auth/oidc' = 'GET /auth/oidc',
'GET /auth/azure/callback' = 'GET /auth/azure/callback',
'GET /auth/gh/callback' = 'GET /auth/gh/callback',
'GET /auth/google/callback' = 'GET /auth/google/callback',
'GET /auth/goog/callback' = 'GET /auth/goog/callback',
'GET /auth/oidc/callback' = 'GET /auth/oidc/callback'
}

Expand Down Expand Up @@ -179,7 +179,7 @@ export const LIMITS: RateLimiterOptions = {
duration: 1 * TIME.minute
}
},
'GET /auth/local': {
'GET /auth/local/login': {
regularOptions: {
limitCount: getIntFromEnv('RATELIMIT_GET_AUTH', '4'),
duration: 10 * TIME.minute
Expand Down Expand Up @@ -209,7 +209,7 @@ export const LIMITS: RateLimiterOptions = {
duration: 30 * TIME.minute
}
},
'GET /auth/google': {
'GET /auth/goog': {
regularOptions: {
limitCount: getIntFromEnv('RATELIMIT_GET_AUTH', '4'),
duration: 10 * TIME.minute
Expand Down

0 comments on commit c5f5bf7

Please sign in to comment.