You are responsible for a mobile app that handles login, biometric prompts, and a cached session token used to call protected APIs. A recent release introduced intermittent freezes during sign-in, and crash reports suggest the UI thread is sometimes blocked while background work is still running. You also suspect that shared state around the token cache may be accessed concurrently from multiple threads.
You are responsible for a mobile app that handles login, biometric prompts, and a cached session token used to call protected APIs. A recent release introduced intermittent freezes during sign-in, and crash reports suggest the UI thread is sometimes blocked while background work is still running. You also suspect that shared state around the token cache may be accessed concurrently from multiple threads.