mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-26 17:06:41 -05:00
fix(api-key): log key verification errors (#7174)
Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
@@ -289,6 +289,7 @@ export function verifyApiKey({
|
||||
);
|
||||
}
|
||||
} catch (error) {
|
||||
ctx.context.logger.error("Failed to validate API key:", error);
|
||||
if (isAPIError(error)) {
|
||||
return ctx.json({
|
||||
valid: false,
|
||||
|
||||
Reference in New Issue
Block a user