Skip to content

Commit

Permalink
Merge branch 'multi-pds-auth' into signup-queueing-take2
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Feb 3, 2024
2 parents ef49db0 + 4127d0f commit 1981dc9
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@ export default function (server: Server, ctx: AppContext) {
rateLimit: [
{
durationMs: DAY,
points: 15,
calcKey: ({ input, req }) =>
`${input.body.email.toLowerCase()}-${req.ip}`,
points: 50,
},
{
durationMs: HOUR,
points: 5,
calcKey: ({ input, req }) =>
`${input.body.email.toLowerCase()}-${req.ip}`,
points: 15,
},
],
handler: async ({ input }) => {
Expand Down

0 comments on commit 1981dc9

Please sign in to comment.