mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-09-12 19:51:00 +05:00
fix(auth): ensure error message is properly converted to string in API key validation
This commit is contained in:
parent
713aa5fd58
commit
a83a742bf3
@ -361,7 +361,7 @@ export const validateRequest = async (request: IncomingMessage) => {
|
||||
});
|
||||
|
||||
if (error) {
|
||||
throw new Error(error.message || "Error verifying API key");
|
||||
throw new Error(error.message?.toString() || "Error verifying API key");
|
||||
}
|
||||
if (!valid || !key) {
|
||||
return {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user