Original Reddit post

I recently worked on a project where I designed the whole system first and later created the PRD.md , PLAN.md , TECH.md , and PROGRESS.md files and fed them to Claude. After 6 days of vibe coding, I completed that project, and it was working fine locally. Letter: I have to host the backend on Cloudflare workers and the frontend on Vercel. I completed both, and then I tried to test this production website. i was getting a 401 for login. from this i confirmed that the backend is connected and the database (turso) is also connected well. Later I tried to debug this to find out why I was getting this error, and after too many different approaches, like new admin creation, new database, backend redeploy, etc., I wasn’t able to find the exact cause. Later I saw one thing in my code that I was not familiar with, and that was a password hashing lib and its iteration. It is PBKDF2 iterations in my code, and it has a number like 600,000. There I did research on this and found that the max number of these iterations is 100,000 for the Cloudflare free plan, but this will work fine on your local machine. everything looks correct individually, but the runtime environment changes the rules. So, if you are working with Cloudflare Workers and this specific lib for password hashing, then note this; it may help you. I am biggerner and I got this error. But at least i learn something from this submitted by /u/InsideTraditional187

Originally posted by u/InsideTraditional187 on r/ClaudeCode