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