Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

wip

Carl-Gerhard Lindesvärdc64e33bbad0b
diff --git a/apps/web/src/server/auth.ts b/apps/web/src/server/auth.ts
index ae7e2d15b..3c555153f 100644
--- a/apps/web/src/server/auth.ts
+++ b/apps/web/src/server/auth.ts
@@ -105,6 +105,12 @@ export async function validateSdkRequest(req: NextApiRequest): Promise<string> {
const clientId = req?.headers['mixan-client-id'] as string | undefined;
const clientSecret = req.headers['mixan-client-secret'] as string | undefined;
+ console.log('clientId',clientId);
+ console.log('clientSecret',clientSecret);
+ console.log(JSON.stringify(req.headers, null, 2));
+
+
+
if (!clientId) {
throw createError(401, 'Misisng client id');
}