sanitize logging of sensitive info.

This commit is contained in:
Francis Cao
2026-06-22 23:03:01 -07:00
parent 527ef9d769
commit 2e74b3ebae
+7 -1
View File
@@ -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');