BA
Better Auth•15h ago
Ravi

Mismatch in units for Refill Interval (API Plugin)

Hello, I've come across this bug in verify-api-key.ts: https://github.com/better-auth/better-auth/blob/canary/packages/better-auth/src/plugins/api-key/routes/verify-api-key.ts In the documentation for the API Plugin, the refillInterval should be in miliseconds. However, refillInterval is treated like it is in days in this file. I've attached the screenshot to show where that happens. I've also attached a screenshot of the API key schema from the docs. If this is indeed a bug I'd love to create a PR to fix, it could be my first open-source contribution 🙂
GitHub
better-auth/packages/better-auth/src/plugins/api-key/routes/verify-...
The most comprehensive authentication framework for TypeScript - better-auth/better-auth
No description
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?