github mozilla/application-services v0.31.1

latest releases: v143.0, v142.0, v141.0...
6 years ago

v0.31.1 (2019-06-10)

Full Changelog

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 through FirefoxAccount.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.
  • FirefoxAccount.getProfile now performs the above retry logic automagically. An authentication error while calling getProfile indicates that the user needs to reconnect their account. (#1244

Don't miss a new application-services release

NewReleases is sending notifications on new releases.