Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
sanitize logging of sensitive info.
Francis Cao2e74b3ebae15
diff --git a/src/lib/auth.ts b/src/lib/auth.tsindex 1c4eab844..45144b5c3 100644--- a/src/lib/auth.ts+++ b/src/lib/auth.ts@@ -38,7 +38,13 @@ export async function checkAuth(request: Request) {}}- log({ token, payload, authKey, shareToken, user });+ log({+ hasToken: !!token,+ hasPayload: !!payload,+ hasAuthKey: !!authKey,+ hasShareToken: !!shareToken,+ userId: user?.id,+ });if (!user?.id && !shareToken) {log('User not authorized');