diff --git a/server/internal/clients/event-handler.ts b/server/internal/clients/event-handler.ts index 0e0d9a4..66249fb 100644 --- a/server/internal/clients/event-handler.ts +++ b/server/internal/clients/event-handler.ts @@ -35,8 +35,8 @@ export function defineClientEventHandler(handler: EventHandlerFunction) { const nonceTime = parseInt(nonce); const current = Date.now(); if ( - // If it was generated in the future - nonceTime > current || + // If it "will be generated" in thirty seconds + nonceTime > current + NONCE_LENIENCE || // Or more than thirty seconds ago nonceTime < current - NONCE_LENIENCE ) {