Remove dangerous logging

This commit is contained in:
Owen Schwartz
2024-12-22 12:03:46 -05:00
parent 3fb3be1f1e
commit 1361b47ef7
8 changed files with 190 additions and 36 deletions

View File

@@ -126,8 +126,6 @@ export async function login(
await createSession(token, existingUser.userId);
const cookie = serializeSessionCookie(token);
logger.debug(cookie);
res.appendHeader("Set-Cookie", cookie);
if (

View File

@@ -75,8 +75,6 @@ export async function requestPasswordReset(
// TODO: send email with link to reset password on dashboard
// something like: https://example.com/auth/reset-password?email=${email}&?token=${token}
// for now, just log the token
logger.debug(`Password reset token: ${token}`);
return response<RequestPasswordResetResponse>(res, {
data: {
sentEmail: true,