I encountered issues with token acquisition and renewal, which I will describe. 

In one instance, I received a 403 error from the API endpoint, indicating that the token had expired. To resolve this, I implemented a token refresh logic. 

First, I detected the 403 error in the API response. Then, I called the acquireTokenSilent method of MSAL to refresh the token. If successful, I received a new token. 

I updated the stored token in encrypted shared preferences and retried the API call with the new token. I ensured a seamless user experience by handling token renewal transparently. 

I tested thoroughly to ensure reliable token handling and renewal. The issues were resolved, providing a secure and uninterrupted service.