v0.31.1 (2019-06-10)
Sync
What's fixed
- Fixes an issue where a stale sync key will be used in cases where a user signs out and signs in to another account. (#1256)
FxA Client
What's new
- Added a new method to help recover from invalid access tokens. (#1244) If the application receives an an authentication exception while using a token
obtained throughFirefoxAccount.getAccessToken
, it should:- Call
FirefoxAccount.clearAccessTokenCache
to remove the invalid token from the internal cache. - Retry the operation after obtaining fresh access token via
FirefoxAccount.getAccessToken
. - If the retry also fails with an authentication exception, then the user will need to reconnect
their account via a fresh OAuth flow.
- Call
FirefoxAccount.getProfile
now performs the above retry logic automagically. An authentication error while callinggetProfile
indicates that the user needs to reconnect their account. (#1244