-
#auth0
#tokens
#ios
#android
#debugging
#testing
▸TL;DR
- A thrown error inside credential refresh cascades all the way into a full logout.
- I built retry, a singleton, and a cooldown around refresh — then found
getCredentials already renews automatically.
- The perpetual loading screen was an expired refresh token returning undefined with nowhere to go.
- Auth0 never proactively revokes; an expired refresh token simply fails on use.
- Testing this properly means mocking Auth0 and asserting a revoke follows, not corrupting tokens by hand.
Read it →
-
#python
#automation
#openai
#whisper
#poetry
#pyenv
#voice-to-text
▸TL;DR
- Built a pipeline that chunks voice memos under Whisper’s 24MB limit, transcribes each piece, and reassembles them into a markdown post.
- Most of the day went to Python environment problems rather than to the pipeline itself.
- The IDE couldn’t resolve imports because its interpreter didn’t match Poetry’s venv.
- Python 3.13 removed
audioop, which PyDub still needs; 3.11 via pyenv fixed it.
- The chain that works: pyenv installs,
poetry env use binds, poetry lock syncs, IDE points at the venv.
Read it →
-
#debugging
#react
#state-management
#mmkv
#hooks
#auth
▸TL;DR
- Auto-navigation stopped firing after a user logs out and back in, but only after a user switch.
- Ruled out storage: the app’s MMKV container is separate from user scope and persists across reloads and full closes.
- Ruled out the hook:
useAppStateTransition fires reliably whether or not the user has a vision.
- What fixed it was initialising the app state manager universally in
app.tsx.
- The fix works and violates separation of concerns, so it’s a lead rather than a resolution.
Read it →
-
#react
#hooks
#useeffect
#auth-context
#debugging
#bugfix
▸TL;DR
- Navigation components disappeared on logout, and behaved unpredictably on cancel.
userPrograms went undefined while userRoles stayed intact — two pieces of user state diverging.
- Cause: the
logout action clears user data when logout starts, not when it succeeds.
- Keying the change on
wasLogoutSuccessful fixed it, including the cancelled-logout case.
- A separate “Device storage not initialized” error survived every change, which means I had the wrong component.
Read it →
-
#react-native
#ios
#build-failure
#xcode
#rsync
#hermes
#debugging
▸TL;DR
- iOS archive failed repeatedly with
rsync unable to find certain files.
- The missing files were ARM64 Hermes directories that React Native’s precompiled dependencies never set up.
- Standard cleaning — pods, Podfile.lock, derived data — didn’t touch it, because the cause was upstream of all that.
- Disabling the precompilation flag in the Podfile and reinstalling clean fixed it.
- Precompiled dependencies promise faster builds and deliver a new failure mode.
Read it →