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