Frontend Engineer

  |  raymondbach.com

Electriclab Compounding Software

A compounding pharmacy system under Pharmetika in Madison, WI.

Role Key Contributor to the UI and API Stack Vue · Javascript · Perl · Mojolicious Date July 2024 - Present

Retry and Logout Fallback for Failed Profile Fetches

The profile fetch runs at the app's entry point, so when it failed, the user was never populated, yet the app kept running, and task completions landed in the audit log attributed to null/undefined instead of the actual user. I added a bounded retry so a transient failure gets a second attempt, then a fallback that logs the user out once retries are exhausted, so a user in the unidentified state never reaches a task to complete in the first place. This kept the audit log accurate and stopped the app from proceeding in a broken, half-authenticated state.

Closing an API Authorization Loophole

A client reported that users on a new account type could access a restricted endpoint. I cross-referenced the SOW to confirm the intended access rules, then traced the API flow to identify the right enforcement point. I found an existing authorization pattern in the codebase and extended it to cover this case, closing off unauthorized access.