mirror of
https://github.com/better-auth/better-auth.git
synced 2026-06-01 11:56:43 -05:00
fix(api-key): use date object for cleanup (#1632)
This commit is contained in:
@@ -23,6 +23,7 @@ describe("api-key", async () => {
|
||||
clientOptions: {
|
||||
plugins: [apiKeyClient()],
|
||||
},
|
||||
testWith: "postgres",
|
||||
},
|
||||
);
|
||||
const { headers, user } = await signInWithTestUser();
|
||||
|
||||
@@ -64,7 +64,7 @@ export function createApiKeyRoutes({
|
||||
{
|
||||
field: "expiresAt" satisfies keyof ApiKey,
|
||||
operator: "lt",
|
||||
value: new Date().getTime(),
|
||||
value: new Date(),
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user