I run a SaaS platform on a Hetzer-hosted stack (Laravel 10, MySQL) and the protected API endpoints are suddenly throwing 401 responses and, in some cases, bubbling up to 500 errors. The culprit is clearly the authentication layer—we rely on token-based auth—yet I can’t trace where the chain breaks. I’ll grant you full access to the repo and staging server so you can replicate the calls, inspect middleware, validate token lifetimes, and comb through server logs. Once you pinpoint the root cause, patch the code or configuration, push the fix, and document what changed so I can avoid a repeat. Deliverables • Resolve the 401 and related 500 errors in production • Commit clean, commented fixes (Git) and run a brief post-fix test suite • Short report outlining the issue, the fix, and any follow-up recommendations If you’ve wrangled Laravel Sanctum, Passport, JWT, or custom token schemes before, this should be straightforward. I’m ready to test your solution as soon as it’s pushed.