feat: update .gitignore for Bun and generated files, minor formatting fix in password reset handler

This commit is contained in:
Jose Selesan
2026-04-13 21:25:53 -03:00
parent 62d28734fc
commit e2299c6d46
8 changed files with 153 additions and 9 deletions

View File

@@ -5,10 +5,7 @@ import type { PasswordResetVerifyInput } from '@repo/api-contract';
export async function verifyPasswordResetHandler(c: AppContext) {
const payload = c.req.valid('json' as never) as PasswordResetVerifyInput;
const ip =
c.req.header('x-forwarded-for') ||
c.req.header('cf-connecting-ip') ||
'unknown';
const ip = c.req.header('x-forwarded-for') || c.req.header('cf-connecting-ip') || 'unknown';
const userAgent = c.req.header('user-agent');
const result = await verifyOtpAndResetPassword(payload, ip, userAgent);