From 8c19303bafe15b672933503eab157b81138ffcb0 Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Sat, 23 Apr 2022 05:37:36 +0200 Subject: [PATCH] fix: verify expire --- lib/helpers/verifyApiKey.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helpers/verifyApiKey.ts b/lib/helpers/verifyApiKey.ts index 2c16a9baf6..cf5c4a8472 100644 --- a/lib/helpers/verifyApiKey.ts +++ b/lib/helpers/verifyApiKey.ts @@ -14,7 +14,7 @@ declare module "next" { // Used to check if the apiKey is not expired, could be extracted if reused. but not for now. export const dateNotInPast = function (date: Date) { const now = new Date(); - if (now.setHours(0, 0, 0, 0) >= date.setHours(0, 0, 0, 0)) { + if (now.setHours(0, 0, 0, 0) > date.setHours(0, 0, 0, 0)) { return true; } };