Whenever you're ready, walk me through how you'd approach this.
Design the authentication flow for a mobile app. Your answer should cover how a user signs in, how credentials are exchanged for a session token, how the app stores and refreshes that token securely, and how logout invalidates the session.